Skip to content
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

Use Node12 and assign Instance Profile to Beanstalk Env #12

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
bb18264
change from stelligent to PauLDuvall
PaulDuvall Jul 17, 2020
8f9ffce
update EB solution to use Node 12
PaulDuvall Jul 17, 2020
5b6e803
no quotes in EB solution
PaulDuvall Jul 17, 2020
aba551c
add InstanceProfile and Role
PaulDuvall Jul 17, 2020
919bfaf
change OptionName to ServiceRole
PaulDuvall Jul 17, 2020
3fb8fb5
remove Rolenane
PaulDuvall Jul 17, 2020
566ebed
Merge branch 'master' into master
PaulDuvall Jul 17, 2020
a88a5c7
delete non-failed stacks
PaulDuvall Jul 17, 2020
ceaef60
add Deletion and Update Policy on S3 bucket
PaulDuvall Jul 17, 2020
a047cd7
update OpsWorks URL in samples README
PaulDuvall Jul 17, 2020
d026f21
update remainder of Launch Stack URLs in samples README
PaulDuvall Jul 17, 2020
005195c
update remainder of Launch Stack URLs in samples README
PaulDuvall Jul 17, 2020
7562c19
provide README instructions for running Beanstalk stack
PaulDuvall Jul 17, 2020
271df90
provide README instructions for running Beanstalk stack
PaulDuvall Jul 17, 2020
5e01a8d
add tmp-doea dir
PaulDuvall Jul 17, 2020
2c90c25
use dir
PaulDuvall Jul 17, 2020
a30ff04
remove devops-essentials from path
PaulDuvall Jul 17, 2020
0543639
change location of zip file for CodeCommit
PaulDuvall Jul 17, 2020
f0f1b6c
create zip from current beanstalk dir
PaulDuvall Jul 17, 2020
e918abc
add PIPELINE_BUCKET env var, latest build image, replace S3 bucket na…
PaulDuvall Aug 21, 2020
820844e
add update-taskcat.sh to replace S3 token
PaulDuvall Aug 21, 2020
2655531
remove -j option
PaulDuvall Aug 21, 2020
b50d696
change to v5.2.0
PaulDuvall Aug 21, 2020
24ce4f1
run ec2 cfn test
PaulDuvall Aug 21, 2020
2ed7a09
change ec2 pipeline param value to String
PaulDuvall Aug 21, 2020
f8d0714
retain S3 bucket
PaulDuvall Aug 21, 2020
59613d1
disable lint
PaulDuvall Sep 7, 2020
e3a8adb
change default branch to main
PaulDuvall Mar 31, 2021
bcb2de7
change default branch to main
PaulDuvall Mar 31, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add PIPELINE_BUCKET env var, latest build image, replace S3 bucket na…
…me using token
PaulDuvall committed Aug 21, 2020
commit e918abcdb89ab5f73fb132209727cbda0a991ee6
8 changes: 4 additions & 4 deletions .taskcat.yml
Original file line number Diff line number Diff line change
@@ -18,8 +18,8 @@ tests:
beanstalk:
parameters:
EmailAddress: fake-email@fake-fake-fake-email.com
S3Bucket: deoa-wkshop-abcd
S3Key: deoa-beanstalk-examples.zip
CodeCommitS3Bucket: deoa-wkshop-abcd
CodeCommitS3Key: deoa-beanstalk-examples.zip
S3Bucket: S3_BUCKET_TOKEN
S3Key: doea-beanstalk-examples.zip
CodeCommitS3Bucket: S3_BUCKET_TOKEN
CodeCommitS3Key: doea-beanstalk-examples.zip
template: ./samples/beanstalk/pipeline.yml
22 changes: 11 additions & 11 deletions buildspec-setup.yml
Original file line number Diff line number Diff line change
@@ -5,21 +5,21 @@ phases:
python: 3.7
commands:
- python --version
pre_build:
commands:
- >-
ls -las
- chmod +x *.sh
- ./update-taskcat.sh $PIPELINE_BUCKET
build:
commands:
- echo In buildspec-setup.yml Build started on `date`
- >-
aws s3api list-buckets --query 'Buckets[?starts_with(Name,
`deoa-wkshop-abcd`) == `true`].[Name]' --output text | xargs -I {} aws s3 rb s3://{} --force
- 'sleep 10'
- 'aws s3 mb s3://deoa-wkshop-abcd'
- 'aws s3 sync . s3://deoa-wkshop-abcd'
- cd samples/ec2
- zip deoa-ec2-examples.zip *.*
- 'aws s3 sync . s3://deoa-wkshop-abcd'
- cd ../beanstalk
- zip deoa-beanstalk-examples.zip *.*
- 'aws s3 sync . s3://deoa-wkshop-abcd'
zip -r doea-ec2-examples.zip ./samples/ec2 -j -x '*.git*'
- >-
zip -r doea-beanstalk-examples.zip ./samples/beanstalk -j -x '*.git*'
- >-
aws s3 sync . s3://$PIPELINE_BUCKET
post_build:
commands:
- echo In buildspec-setup.yml Build completed on `date`
13 changes: 9 additions & 4 deletions pipeline-taskcat.yml
Original file line number Diff line number Diff line change
@@ -144,7 +144,12 @@ Resources:
Environment:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/amazonlinux2-x86_64-standard:1.0"
Image: "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
EnvironmentVariables:
- Name: PIPELINE_BUCKET
Type: PLAINTEXT
Value:
Fn::Sub: ${PipelineBucket}
Source:
Type: GITHUB
Location: !Sub https://github.com/${GitHubUser}/${GitHubRepo}.git
@@ -162,7 +167,7 @@ Resources:
Environment:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/amazonlinux2-x86_64-standard:1.0"
Image: "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
Source:
Type: GITHUB
Location: !Sub https://github.com/${GitHubUser}/${GitHubRepo}.git
@@ -180,7 +185,7 @@ Resources:
Environment:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/amazonlinux2-x86_64-standard:1.0"
Image: "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
Source:
Type: CODEPIPELINE
TimeoutInMinutes: 60
@@ -196,7 +201,7 @@ Resources:
Environment:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/amazonlinux2-x86_64-standard:1.0"
Image: "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
Source:
Type: CODEPIPELINE
BuildSpec: !Sub |
2 changes: 1 addition & 1 deletion samples/beanstalk/pipeline.yml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ Parameters:
AllowedPattern: "[\\x20-\\x7E]*"
ConstraintDescription: Can contain only ASCII characters.
S3Key:
Description: S3 Bucket that hosts the application code
Description: Zip file that contains application code
Type: String
Default: html.zip
AllowedPattern: "[\\x20-\\x7E]*"