File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ export AWS_PROFILE=" prod"
4+ if [ " $AWS_PROFILE " == " prod" ]
5+ then
6+ SAM_S3_BUCKET=" appdevstore"
7+ AWS_REGION=" us-east-1"
8+ else
9+ SAM_S3_BUCKET=" cf-templates-5d0x5unchag-us-east-2"
10+ AWS_REGION=" us-east-2"
11+ fi
12+
13+ version=" 1.0.4"
14+
15+ echo " Creating package.yaml"
16+ sam package --template-file template.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged.yaml --s3-prefix " GuardDuty/v" $version --region $AWS_REGION --profile $AWS_PROFILE
17+
18+ echo " Publishing sumologic-guardduty-events-processor " $version
19+ sam publish --template packaged.yaml --region $AWS_REGION --semantic-version $version
20+
21+ echo " Published sumologic-guardduty-events-processor " $version
22+ # sam deploy --template-file packaged_sumo_app_utils.yaml --stack-name testingsumoapputils --capabilities CAPABILITY_IAM --region $AWS_REGION
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ export AWS_PROFILE=" prod"
4+ if [ " $AWS_PROFILE " == " prod" ]
5+ then
6+ SAM_S3_BUCKET=" appdevstore"
7+ AWS_REGION=" us-east-1"
8+ else
9+ SAM_S3_BUCKET=" cf-templates-5d0x5unchag-us-east-2"
10+ AWS_REGION=" us-east-2"
11+ fi
12+
13+ version=" 1.0.12"
14+
15+ echo " Creating package.yaml"
16+ sam package --template-file template_v2.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged.yaml --s3-prefix " guarddutybenchmark/v" $version --region $AWS_REGION --profile $AWS_PROFILE
17+
18+ echo " Publishing sumologic-guardduty-benchmark " $version
19+ sam publish --template packaged.yaml --region $AWS_REGION --semantic-version $version
20+
21+ echo " Published sumologic-guardduty-benchmark " $version
22+ # sam deploy --template-file packaged_sumo_app_utils.yaml --stack-name testingsumoapputils --capabilities CAPABILITY_IAM --region $AWS_REGION
File renamed without changes.
You can’t perform that action at this time.
0 commit comments