1 Answer
- Newest
- Most votes
- Most comments
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"),
},
}
);
}
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 10 months ago