-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Labels
Description
Currently, I have my build tool download python and the aws cli to deploy my SAM template. My current deploy task looks like:
task packageSam(dependsOn: getTasksByName("shadowJar", true)) {
doLast {
exec {
commandLine "aws", "cloudformation", "package", "--template-file", "service.yml", "--s3-bucket", deploymentBucketName, "--output-template-file", "service-out.yml"
}
}
}
task deploy(dependsOn: packageSam) {
doLast {
exec {
commandLine "aws", "cloudformation", "deploy", "--template-file", "service-out.yml", "--stack-name", "my-service", "--parameter-overrides", "Stage=latest", "--capabilities", "CAPABILITY_IAM"
}
}
}
I think I'd be able to use this tool and eliminate the aws cli if it supported the cloudformation package
and cloudformation deploy
commands.
SchulteDev