Skip to content

Commit efd2295

Browse files
committed
Adding guardduty deploy scripts
1 parent 87efb38 commit efd2295

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

cloudwatchevents/guardduty/deploy.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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.

0 commit comments

Comments
 (0)