uc3-sam-sceptre 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/uc3-sam-sceptre/version.rb +1 -1
- data/lib/uc3-sam-sceptre.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bcbd555e1d6fb8d83e3e157ca3856f5d4d6bbaa34cee3d6206b5ce772a45c19
|
4
|
+
data.tar.gz: 2c88ac3b031e2698a5d262af687e459ff10c7c6af96d3cb3ab73d5bb538ec1d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a14779034552e37dcac36636392347b5a3c4279694880e6ab110c6d0eca364f958ba0a9849daa6cb4e399f940d11c0cf0162e62a6b31b73115c1cce638a7088f
|
7
|
+
data.tar.gz: 2f07359d9466b57aefb5b6993cf279c5974193f61914f60608ae98edd566d7d590894ed10cc1106e1ec5cebf82462db407325ad9e949e5249a02d28f9de7ff69
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@ This gem provides functionality that can be used to help Sceptre trigger a SAM b
|
|
4
4
|
to create an image and push it to an ECR repository or build the ZIP archive and put it into an S3 bucket
|
5
5
|
and then run the CloudFormation create/update/delete.
|
6
6
|
|
7
|
+
You can run the script manually and via a Sceptre hook when you are initialiiy creating your stacks.
|
8
|
+
|
7
9
|
## Prerequisites
|
8
10
|
|
9
11
|
This gem assumes that you have organized your Sceptre config by environment! For example:
|
data/lib/uc3-sam-sceptre.rb
CHANGED
@@ -75,8 +75,8 @@ module Uc3SamSceptre
|
|
75
75
|
"--parameter-overrides #{_build_deploy_overrides}"
|
76
76
|
]
|
77
77
|
# Add the S3 or ECR details depending on what we're working with
|
78
|
-
args << "--s3-bucket #{_locate_value(key: @s3_arn_key)
|
79
|
-
args << "--s3-prefix #{@stack_name}"
|
78
|
+
args << "--s3-bucket #{_locate_value(key: @s3_arn_key)&.gsub('arn:aws:s3:::', '')}" unless @s3_arn_key.nil?
|
79
|
+
args << "--s3-prefix #{@stack_name}" unless @s3_arn_key.nil?
|
80
80
|
args << "--image-repository #{_locate_value(key: @ecr_uri_key)}" unless @ecr_uri_key.nil?
|
81
81
|
|
82
82
|
args << "--guided" if guided
|