1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
used AwsCustomResource at the end of my CF stack
example code for secretManager Service
const apiKeysRotationTrigger = new AwsCustomResource(
this,
"ident",
{
policy: AwsCustomResourcePolicy.fromSdkCalls({
resources: AwsCustomResourcePolicy.ANY_RESOURCE,
}),
onCreate: {
service: "SecretsManager",
action: "rotateSecret",
parameters: {
SecretId: "SecretId",
},
physicalResourceId: PhysicalResourceId.of("PhysicalResourceId"),
},
onUpdate: {
service: "SecretsManager",
action: "rotateSecret",
parameters: {
SecretId: "SecretId",
},
physicalResourceId: PhysicalResourceId.of("PhysicalResourceId"),
},
}
);
}
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전