-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(secrets): bump semanticVersion for aws-cn #30201
Conversation
I would recommend bumping the GovCloud version string as well while you’re at it. |
Before the PR being merged, you have two workarounds: Given: const app = new App();
const stack = new Stack(app, 'demo-stack');
const vpc = new ec2.Vpc(stack, 'Vpc', { natGateways: 1 });
const instance = new rds.DatabaseInstance(stack, 'Instance', {
vpc,
engine: rds.DatabaseInstanceEngine.MARIADB,
}); OPTION 1: // option 1: override by escape hatches
const cfnapp = instance.node.tryFindChild('rotationMulti') as sam.CfnApplication
const cfnmapping = cfnapp.node.tryFindChild('SARMapping') as CfnMapping
cfnmapping.setValue('aws-cn', 'semanticVersion', '1.1.237'); OPTION 2: class MyAspect implements IAspect {
public visit(node: IConstruct): void {
if (node instanceof CfnMapping && node.node.id === 'SARMapping') {
node.setValue('aws-cn', 'semanticVersion', '1.1.237');
}
}
}
Aspects.of(instance).add(new MyAspect()); On aws-cn:
applicationId: arn:aws-cn:serverlessrepo:cn-north-1:193023089310:applications/SecretsManagerRDSMariaDBRotationMultiUser
semanticVersion: 1.1.237 |
Can I check current version of GovCloud without having an account on it? |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
### Issue # (if applicable) Similar to aws#28733 , this PR bumps the default version for aws-cn partition ro `1.1.237` as the current version comes with deprecated lambda python runtime. ``` aws --profile bjs serverlessrepo get-application --application-id arn:aws-cn:serverlessrepo:cn-north-1:193023089310:applications/SecretsManagerRDSPostgreSQLRotationSingleUser --query Version.SemanticVersion --output text 1.1.237 ``` I was evaluating a fix for aws#30200 but unfortunately that would require a lot of refactor so I am opening this tiny PR to get it bumped. internal tracking: P128811127 Closes #<issue number here>. ### Reason for this change ### Description of changes ### Description of how you validated changes ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ### How to find the serverless `applicationId` and `semanticVersion` 1. Go to the serverlessrepo console and search `SecretsManagerRDSPostgreSQLRotationSingleUser`. Make sure to check `Show apps that create custom IAM roles or resource policies` <img width="434" alt="image" src="https://github.com/aws/aws-cdk/assets/278432/f3fbd9e8-64b0-4c84-b877-dc5bdef1e9f8"> 2. Click into the application 3. Find the `applicationId` from the URL. For example, in `us-east-1` the id is `arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerRDSPostgreSQLRotationSingleUser` 4. Find out the semanticVersion using AWS CLI: ```sh $ appid='arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerRDSPostgreSQLRotationSingleUser' $ aws serverlessrepo get-application --application-id $appid --query Version.SemanticVersion --output text ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Issue # (if applicable)
Similar to #28733 , this PR bumps the default version for aws-cn partition ro
1.1.237
as the current version comes with deprecated lambda python runtime.I was evaluating a fix for #30200 but unfortunately that would require a lot of refactor so I am opening this tiny PR to get it bumped.
internal tracking: P128811127
Closes #.
Reason for this change
Description of changes
Description of how you validated changes
Checklist
How to find the serverless
applicationId
andsemanticVersion
SecretsManagerRDSPostgreSQLRotationSingleUser
. Make sure to checkShow apps that create custom IAM roles or resource policies
applicationId
from the URL. For example, inus-east-1
the id isarn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerRDSPostgreSQLRotationSingleUser
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license