Skip to content

Commit

Permalink
Merge branch 'master' into corymhall/fix-elbv2-targets-integ
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Apr 4, 2022
2 parents 859b12a + c22aec3 commit d784890
Show file tree
Hide file tree
Showing 29 changed files with 4,261 additions and 345 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import * as path from 'path';
import * as cdk from '@aws-cdk/core';
import * as secretsmanager from '../lib';

/// !cdk-integ Integ-SecretsManager-ParsedSecretName pragma:set-context:@aws-cdk/aws-secretsmanager:parseOwnedSecretName=true

/**
* Creates several secrets, with varying names and IDs, with the parseOwnedSecretName feature flag set,
* to verify the secretName returned by `Secret.secretName` matches the `Name` returned by `DescribeSecrets`.
Expand Down Expand Up @@ -39,6 +41,9 @@ class SecretsManagerStack extends cdk.Stack {
}

const app = new cdk.App({
context: {
'@aws-cdk/aws-secretsmanager:parseOwnedSecretName': true,
},
});
new SecretsManagerStack(app, 'Integ-SecretsManager-ParsedSecretName');
app.synth();
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
]
},
"Handler": "index.handler",
"Runtime": "nodejs10.x"
"Runtime": "nodejs14.x"
},
"DependsOn": [
"HelloHandlerServiceRole11EF7C63"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const stack = new cdk.Stack(app, 'CallHttpApiInteg');
const httpApi = new apigatewayv2.HttpApi(stack, 'MyHttpApi');

const handler = new lambda.Function(stack, 'HelloHandler', {
runtime: lambda.Runtime.NODEJS_10_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
code: new lambda.InlineCode('exports.handler = async function(event, context) { return { statusCode: 200, body: "hello, world!" }; };'),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
]
},
"Handler": "index.handler",
"Runtime": "nodejs10.x"
"Runtime": "nodejs14.x"
},
"DependsOn": [
"HelloServiceRole1E55EA16"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const stack = new cdk.Stack(app, 'CallRestApiInteg');
const restApi = new apigateway.RestApi(stack, 'MyRestApi');

const hello = new apigateway.LambdaIntegration(new lambda.Function(stack, 'Hello', {
runtime: lambda.Runtime.NODEJS_10_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
code: new lambda.InlineCode('exports.handler = async function(event, context) { return { statusCode: 200, body: "hello, world!" }; };'),
}));
Expand Down
Loading

0 comments on commit d784890

Please sign in to comment.