-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(efs): support tagging for access point #24336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.
I referred to #7363 and #7445 to add a new tag for EFS::AccessPoint. I implement it and add tests for aws-efs, however, tags are not generated and tests failed. Do you have any ideas about my mistake? aws-efs % yarn test
yarn run v1.22.19
$ cdk-test
FAIL test/access-point.test.js
● support tags for AccessPoint
Template has 1 resources with type AWS::EFS::AccessPoint, but none match as expected.
The 1 closest matches:
MyAccessPoint9925F14C :: {
"Properties": {
!! Missing key 'AccessPointTags'
"AccessPointTags": undefined,
"FileSystemId": { "Ref": "EfsFileSystem37910666" },
"RootDirectory": {}
},
"Type": "AWS::EFS::AccessPoint"
}
105 | const matchError = hasResourceProperties(this.template, type, props);
106 | if (matchError) {
> 107 | throw new Error(matchError);
| ^
108 | }
109 | }
110 |
at Template.hasResourceProperties (../assertions/lib/template.ts:107:13)
at Object.<anonymous> (test/access-point.test.ts:42:29) |
@ymhiroki looks like you did everything correctly! I'm not sure why it was failing with that error, I just updated the branch so that it would build again and it's working now (just need to update the integ test snapshots). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this will need a few more snapshot updates. Putting this into changes requested to remove from our review queue for the moment.
Pull request has been modified.
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). |
Closes aws#20743 . ---- ### All Submissions: * [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Construct Runtime Dependencies: * [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies) ### New Features * [X] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [X] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Closes #20743 .
All Submissions:
Adding new Construct Runtime Dependencies:
New Features
yarn integ
to deploy the infrastructure and generate the snapshot (i.e.yarn integ
without--dry-run
)?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license