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
feat(efs): Filesystem.addAccessPoint() #8737
Conversation
Trying to add My integ test looks like this: import * as ec2 from '@aws-cdk/aws-ec2';
import * as cdk from '@aws-cdk/core';
import { FileSystem } from '../lib';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'test-efs-integ');
const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 3, natGateways: 1});
const fileSystem = new FileSystem(stack, 'FileSystem', {
vpc,
});
fileSystem.addAccessPoint('AccessPoint', {
createAcl: {
ownerGid: '1000',
ownerUid: '1000',
permissions: '755',
},
path: '/custom-path',
posixUser: {
gid: '1000',
uid: '1000',
},
}) But I am getting the error: Error: There is already a Construct with name 'Resource' in FileSystem [FileSystem]
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@pahud the problem lies here:
you should be using const resource = new CfnAccessPoint(this, 'Resource', { = creating the (might be something an |
This is super helpful! Thanks for the insight! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Hi @nija-at , all checks passed. Would you please check this out? Thanks. |
Thank you for contributing! Your pull request will be updated from master 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 master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
feat(efs): addAccessPoint() support for efs FileSystem
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license