SecretsManager动态参考是否可在胶水云形象中起作用?
我试图
({{resolve:secretsmanager:${DBSecretManagerArn}:SecretString:username}})
在构建过程中使用Secret Manager Dynamion参考在胶水云形式中创建文档DB连接,没有评估失败,但是在作业完成之前,它发生了错误 - 调用UpdateStack操作时发生了错误(验证Error):给定的输入不匹配预期格式。我在网上没有发现太多文档。如果您遇到了此类问题,请有人指导。
Some-Name:
Type: AWS::Glue::Connection
Properties:
CatalogId: !Ref AWS::AccountId
ConnectionInput:
Name: connection
Description: "Document DB database."
ConnectionType: MONGODB
ConnectionProperties:
CONNECTION_URL: !Ref ConnectionUri
USERNAME: !Sub '{{resolve:secretsmanager:${DBSecretManagerArn}:SecretString:username}}'
PASSWORD: !Ref Password
JDBC_ENFORCE_SSL: false
PhysicalConnectionRequirements:
AvailabilityZone: !Select
- 0
- Fn::GetAZs: !Ref 'AWS::Region'
SecurityGroupIdList:
- sg-some
SubnetId: !ImportValue some-value
I am trying to create a Document Db connection in Glue Cloudformation with secret manager dynamic reference
({{resolve:secretsmanager:${DBSecretManagerArn}:SecretString:username}})
During build there is no evaluation failure but before the job finishes it failed - An error occurred (ValidationError) when calling the UpdateStack operation: Given input did not match expected format. I haven't found much documentation online. Can someone please guide if you have faced such issues.
Some-Name:
Type: AWS::Glue::Connection
Properties:
CatalogId: !Ref AWS::AccountId
ConnectionInput:
Name: connection
Description: "Document DB database."
ConnectionType: MONGODB
ConnectionProperties:
CONNECTION_URL: !Ref ConnectionUri
USERNAME: !Sub '{{resolve:secretsmanager:${DBSecretManagerArn}:SecretString:username}}'
PASSWORD: !Ref Password
JDBC_ENFORCE_SSL: false
PhysicalConnectionRequirements:
AvailabilityZone: !Select
- 0
- Fn::GetAZs: !Ref 'AWS::Region'
SecurityGroupIdList:
- sg-some
SubnetId: !ImportValue some-value
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论