-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration with Docker Build
Komalis edited this page Aug 6, 2023
·
1 revision
metadata:
appname: "xxxxx"
role:
managed_policies: []
statements:
- sid: "ssmactions"
resources: ["*"]
actions: ["ssmmessages:CreateControlChannel", "ssmmessages:CreateDataChannel", "ssmmessages:OpenControlChannel", "ssmmessages:OpenDataChannel", "secretsmanager:*"]
effect: "Allow"
- sid: "s3actions"
resources: ["*"]
actions: ["s3:*"]
effect: "Allow"
execution_role:
managed_policies: ["service-role/AmazonECSTaskExecutionRolePolicy", "AmazonEC2ContainerRegistryReadOnly"]
statements:
- sid: "secretmanageractions"
resources: ["*"]
actions: ["secretsmanager:GetSecretValue"]
effect: "Allow"
task_definition:
resources:
limits:
cpu: 2
memory: 4096
containers:
- name: xxxxx
image: xxxxx.dkr.ecr.eu-west-1.amazonaws.com/xxxxx:xxxxx-dev.1
user: xxxxx
build:
dockerfile: Dockerfile
args:
ARGS1: "xxxxx"
ARGS2: "xxxxx"
tty: true
command: "/bin/bash"
resources:
limits:
cpu: 1
memory: 2048
synchronize:
root: "."
exclude:
- ".git"
port_forward:
- "8000:8000"
env: []
secrets: []
You can also use target: xxxx to choose which target you will build with.