Skip to content

AWS SAM SupportΒ #140

@oharaandrew314

Description

@oharaandrew314

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions