mirror of
https://github.com/Sea-Haven-Industries/forgejo.git
synced 2026-09-30 05:23:11 +00:00
Restore overrideLogicalId on GcsTransferCredentials secret
Some checks are pending
Deploy / deploy (push) Waiting to run
Some checks are pending
Deploy / deploy (push) Waiting to run
Removing this changed the CloudFormation logical ID from GcsTransferCredentials to GcsTransferCredentials35DA7E5D, triggering a replacement that fails because the named secret already exists.
This commit is contained in:
parent
5ed1db788e
commit
45a63e8552
1 changed files with 4 additions and 0 deletions
|
|
@ -167,6 +167,10 @@ export class ForgejoStack extends cdk.Stack {
|
|||
secretAccessKey: gcsTransferKey.secretAccessKey,
|
||||
},
|
||||
});
|
||||
// Preserve the logical ID to avoid CloudFormation replacement
|
||||
const gcsTransferCredentialsResource = gcsTransferCredentials.node.defaultChild as secretsmanager.CfnSecret;
|
||||
gcsTransferCredentialsResource.overrideLogicalId("GcsTransferCredentials");
|
||||
|
||||
const userData = ec2.UserData.forLinux();
|
||||
userData.addCommands(
|
||||
"set -euxo pipefail",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue