Skip to content

Commit

Permalink
Merge pull request #457 from ericzbeard/fix-456
Browse files Browse the repository at this point in the history
Fixed bug with named stack and change set
  • Loading branch information
ericzbeard authored Jul 17, 2024
2 parents 7f91d27 + c66bb97 commit 73d51d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions internal/cmd/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ To list and delete changesets, use the ls and rm commands.

var suppliedStackName string

if len(args) == 2 {
if len(args) >= 2 {
suppliedStackName = args[1]
} else {
suppliedStackName = ""
}

// Optionally name the change set
Expand Down
11 changes: 11 additions & 0 deletions scripts/integ.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ set -eoux pipefail

./rain rm success-test -y

# Unnamed stack
./rain deploy test/templates/success.template -y --params BucketName=ezbeardatamazon-rain-test-1
./rain cat success
./rain ls success
./rain rm -y success

# Change sets
./rain deploy --no-exec test/templates/success.template success-test success-changeset-name -y --params BucketName=ezbeardatamazon-rain-test-1
./rain ls -c success-test success-changeset-name
./rain rm -c -y success-test success-changeset-name

./rain build AWS::S3::Bucket
./rain build -l

Expand Down

0 comments on commit 73d51d4

Please sign in to comment.