aws / aws-proton-public-roadmap

This is the public roadmap for AWS Proton
https://aws.amazon.com/proton
Other
198 stars 13 forks source link

[Request]: #59

Closed augentry closed 2 years ago

augentry commented 3 years ago

In an AWS Proton template, we define a variable using Jinja's double curly brace syntax "{{}}". Cloudformation seems to use the same syntax for dynamic references.

For example using Cloudformation to define a RDS instance with a password stored in Secrets Manager would look like:

MyDBInstance2:
    Type: AWS::RDS::DBInstance
    Properties:
    AllocatedStorage: 20
    DBInstanceClass: db.t2.micro
    DBName: !Ref RDSDBName
    Engine: mysql
    MasterUsername:
      Fn::Join:
        - ""
        - - "{{resolve:secretsmanager:"
          - Ref: DBCredentialsSecret
          - ":SecretString:username::}}"
    MasterUserPassword:
      Fn::Join:
        - ""
        - - "{{resolve:secretsmanager:"
          - Ref: DBCredentialsSecret
          - ":SecretString:password::}}"
    MultiAZ: False
    PubliclyAccessible: False      
    StorageType: gp2
    DBSubnetGroupName: !Ref myDBSubnetGroup
    VPCSecurityGroups:
    - !Ref RDSSecurityGroup
    BackupRetentionPeriod: 0
    DBInstanceIdentifier: 'rotation-instance'

Is it possible to include a dynamic reference in a Proton template? How can I tell what is going wrong with my template?

mrpatrick commented 2 years ago

I have the same issue. Kind of disappointing that 1. this wasn't considered when rolling out Proton and 2. there is no visibility into the resulting template (only a vague internal error).

clareliguori commented 2 years ago

Looks like this specific issue is a dupe of https://github.com/aws/aws-proton-public-roadmap/issues/30 We'll work on getting this added to our documentation

For the issue of visibility into the generated template, I've opened this separate issue https://github.com/aws/aws-proton-public-roadmap/issues/60