-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b3d6ed
commit d68ee7f
Showing
4 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
securityhub-org/sumologic-securityhub-collector-awsorg/README.md
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
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
7 changes: 4 additions & 3 deletions
7
securityhub-org/sumologic-securityhub-collector-awsorg/sam/sam_package.sh
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
if [ "$AWS_PROFILE" == "prod" ] | ||
then | ||
SAM_S3_BUCKET="appdevstore20211221" | ||
SAM_S3_BUCKET="appdevstore" | ||
AWS_REGION="us-east-1" | ||
else | ||
SAM_S3_BUCKET="appdevstore20211221-prod" | ||
AWS_REGION="us-east-1" | ||
fi | ||
sam package --template-file template.yaml --s3-bucket $SAM_S3_BUCKET --output-template-file packaged.yaml | ||
|
||
sam deploy --template-file packaged.yaml --stack-name testingsecurityhubcollectorawsorg --capabilities CAPABILITY_IAM --region $AWS_REGION --parameter-overrides ParameterKey=SumoEndpoint,ParameterValue=https://endpoint6.collection.us2.sumologic.com/receiver/v1/http/ | ||
sam publish --template packaged.yaml --region us-east-1 | ||
|
||
# sam deploy --template-file packaged.yaml --stack-name testingsecurityhubcollectorawsorg --capabilities CAPABILITY_IAM --region $AWS_REGION --parameter-overrides ParameterKey=SumoEndpoint,ParameterValue=https://endpoint6.collection.us2.sumologic.com/receiver/v1/http/ | ||
|
||
#aws --profile awsorg cloudformation describe-stack-events --stack-name testingsecurityhubcollectorawsorg --region $AWS_REGION | ||
#aws --profile awsorg cloudformation get-template --stack-name testingsecurityhubcollectorawsorg --region $AWS_REGION | ||
#aws --profile awsorg serverlessrepo create-application-version --region us-east-1 --application-id arn:aws:serverlessrepo:us-east-1:$AWS_ACCOUNT_ID:applications/sumologic-securityhub-connector-aws-org --semantic-version 1.0.0 --template-body file://packaged.yaml |
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