Drone plugins > AWS SAM DEPLOY

AWS SAM DEPLOY

by harness


This plugin enables the deployment of AWS Serverless Application Model (SAM) applications. It provides various options for authenticating with AWS, including using access keys, session tokens, and assuming roles with or without web identity tokens.

Example

kind: pipeline
name: default
steps:
- steps:
  name: sam_build
  image: plugins/aws-sam-deploy
  settings:
    aws_access_key: ACCESS_KEY
    aws_secret_key: SECRET_KEY
    aws_region: us-east-1
    stack_name: aws-sam
    s3_bucket: sam-plugin
    template_file_path: template.yaml

Properties

  • aws_access_key

    stringoptional

    The AWS access key for authentication.

    Secret recommended

    Default: none

  • aws_secret_key

    stringoptional

    The AWS secret key for authentication.

    Secret recommended

    Default: none

  • aws_session_token

    stringoptional

    The AWS session token for authentication.

    Secret recommended

    Default: none

  • aws_sts_external_id

    stringoptional

    The external ID for assuming a role with STS.

    Default: none

  • aws_role_arn

    stringoptional

    The ARN of the AWS role to assume.

    Default: none

  • aws_region

    stringoptional

    The AWS region for deployment.

    Default: none

  • template_file_path

    stringrequired

    The path to the SAM template file.

    Default: none

  • stack_name

    stringrequired

    The name of the AWS CloudFormation stack.

    Default: none

  • build_command_options

    stringoptional

    Additional options for the sam build command.

    Default: none

  • s3_bucket

    stringrequired

    The S3 bucket for deployment artifacts.

    Default: none

  • session_name

    stringoptional

    Session name for AWS.

    Default: sam-deploy-plugin

  • deploy_command_options

    stringoptional

    Additional options for the sam deploy command.

    Default: none