-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Joe Snell
committed
Oct 9, 2020
1 parent
cba1614
commit bbd75f7
Showing
9 changed files
with
1,688 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cdk.out | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as cdk from '@aws-cdk/core'; | ||
import { Ci } from './stacks/ci'; | ||
|
||
const app = new cdk.App(); | ||
|
||
new Ci(app, 'lambda-extensions--parameter-store--infrastructure', { | ||
env: { | ||
account: '863125196191', // lambda-extensions account ID | ||
region: 'us-east-1' | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"app": "npx ts-node app.ts", | ||
"requireApproval": "never" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "infrastructure", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@aws-cdk/aws-codebuild": "^1.67.0", | ||
"@aws-cdk/aws-iam": "^1.67.0", | ||
"@aws-cdk/aws-lambda": "^1.67.0", | ||
"@aws-cdk/core": "^1.67.0", | ||
"aws-cdk": "^1.67.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.11.8", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import * as cdk from '@aws-cdk/core'; | ||
import * as iam from '@aws-cdk/aws-iam'; | ||
import * as codebuild from '@aws-cdk/aws-codebuild'; | ||
|
||
export class Ci extends cdk.Stack { | ||
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | ||
super(scope, id, props); | ||
|
||
const appName = `lambda-extensions--parameter-store` | ||
|
||
const prRole = new iam.Role(this, `PrRole`, { | ||
roleName: `${appName}--pr`, | ||
assumedBy: new iam.ServicePrincipal('codebuild.amazonaws.com') | ||
}); | ||
|
||
new codebuild.Project(this, `PRs`, { | ||
projectName: `${appName}--pr`, | ||
role: prRole, | ||
environment: { | ||
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_3 | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"compilerOptions": { | ||
"resolveJsonModule": true, | ||
"target": "ES2018", | ||
"module": "commonjs", | ||
"lib": [ | ||
"es2018" | ||
], | ||
"declaration": true, | ||
"strict": true, | ||
"noImplicitAny": true, | ||
"strictNullChecks": true, | ||
"noImplicitThis": true, | ||
"alwaysStrict": true, | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": false, | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"experimentalDecorators": true, | ||
"strictPropertyInitialization": false, | ||
"typeRoots": [ | ||
"./node_modules/@types" | ||
] | ||
}, | ||
"exclude": [ | ||
"cdk.out", | ||
"node_modules" | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
runtime-versions: | ||
python: 3.8 | ||
build: | ||
commands: | ||
- cd languages/python | ||
- bin/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters