Skip to content

Commit

Permalink
remove launch constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Niranjan Jayakar committed Dec 1, 2020
1 parent eb75ce5 commit 1a108e8
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/@aws-cdk/aws-lambda/test/integ.lambda.docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CfnFunction, DockerImageCode, DockerImageFunction } from '../lib';
class TestStack extends Stack {
constructor(scope: App, id: string) {
super(scope, id, {
env: { region: 'sa-east-1' }, // the feature is available only in sa-east-1 during private beta. Remove after launch.
env: { region: 'eu-west-1' }, // remove after launch
});

new DockerImageFunction(this, 'MyLambda', {
Expand All @@ -15,18 +15,7 @@ class TestStack extends Stack {
}
}

class PrivateResourceAspect implements IAspect {
visit(construct: IConstruct): void {
if (construct instanceof CfnFunction) {
(construct as any).cfnResourceType = 'AWSLambdaBeta::Lambda::Function';
}
}
}

const app = new App();
const stack = new TestStack(app, 'lambda-ecr-docker');

// the feature is available as an CFN private resource during private beta. Remove after launch.
Aspects.of(stack).add(new PrivateResourceAspect());

app.synth();

0 comments on commit 1a108e8

Please sign in to comment.