【发布时间】:2020-11-17 07:05:46
【问题描述】:
假设我创建了
CognitoUserPoolIdentityProviderGoogle:
Type: AWS::Cognito::UserPoolIdentityProvider
Properties:
ProviderName: Google
AttributeMapping:
email: emailAddress
ProviderDetails:
client_id: xxxx
client_secret: yyyy
authorize_scopes: profile email openid phone
ProviderType: Google
UserPoolId:
Ref: CognitoUserPoolUserPool
后来有人手动将client_id 和client_secret 更新为1111 和2222。重新运行 CloudFormation 将导致覆盖手动更改并将值恢复为 xxxx 和 yyyy。
如何避免这种情况? AWS::Cognito::UserPoolIdentityProvider 只是一个例子 - 这可以是任何资源。
我正在寻找的基本上是 Terraform 中 ignore_changes 的功能
【问题讨论】:
标签: amazon-web-services amazon-cloudformation