compose-x / ecs_composex

Manage, Configure and Deploy your services and AWS services and applications from your docker-compose definitions
https://docs.compose-x.io
Mozilla Public License 2.0
160 stars 16 forks source link

[FR] <x-rds.Lookup-Secret Iam access> #642

Closed MuyiwaOla closed 1 year ago

MuyiwaOla commented 2 years ago

Is your feature request related to a problem? Please describe. I was unable to pass secret access to the service using x-rds lookup.

Describe the solution you'd like x-rds.Lookup to grant IAM access to the secret.

JohnPreston commented 1 year ago

Will be released in 0.23 officially (and documented). Here is what it will be like

x-rds:
  dbA:
    Services:
      app01:
        Access: RW
      app03:
        Access: RW
        GrantTaskAccess:
          SecretEnvName: DB_B_SECRET # Grants access to the secret, sets env var DB_B_SECRET to the ARN
      youtoo:
        Access: RW
        GrantTaskAccess: True # Grants access to the secret, not setting an env var
JohnPreston commented 1 year ago

Fixed in #650