-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration with EFS Volume
Komalis edited this page Aug 6, 2023
·
3 revisions
metadata:
appname: "helloworld"
role:
managed_policies: []
statements:
- sid: "ssmactions"
resources: ["*"]
actions: ["ssmmessages:CreateControlChannel", "ssmmessages:CreateDataChannel", "ssmmessages:OpenControlChannel", "ssmmessages:OpenDataChannel", "secretsmanager:*"]
effect: "Allow"
execution_role:
managed_policies: ["service-role/AmazonECSTaskExecutionRolePolicy", "AmazonEC2ContainerRegistryReadOnly"]
statements:
- sid: "secretmanageractions"
resources: ["*"]
actions: ["secretsmanager:GetSecretValue"]
effect: "Allow"
- sid: "s3actions"
resources: ["*"]
actions: ["s3:*"]
effect: "Allow"
task_definition:
resources:
limits:
cpu: 2
memory: 4096
containers:
- name: helloworld
image: docker.io/library/debian
user: root
tty: true
command: "/bin/bash"
resources:
limits:
cpu: 1
memory: 2048
efs_volumes:
- name: "xxxx"
id: "id-efsidxxxx"
mount_point: "/mnt/efs"
env: []
secrets: []