Source Code to AWS Serveless Application Model (SAM) Deployment

This application type takes your AWS Serverless Application Model (SAM) templates and source code—designed for serverless architectures such as APIs, event-driven workflows, or background processing—and deploys it seamlessly within an AWS environment.

Application Features

  • Application Overview: This template deploys your AWS SAM applications, provisioning the necessary serverless resources and infrastructure.
  • Pipelines: The SAM application is built using the specified build command and deployed to AWS resources through the configured pipeline.
  • Security Scans: The built image is scanned for vulnerabilities.
  • Resources: The necessary AWS resources, such as IAM roles, Secrets Manager etc, are created as specified in the SAM deployment.

Getting Started

Choose Application Type

Navigate to the Applications section of your project. Click on the + Create Application button to create a new application. Select Source Code to AWS Serveless Application Model (SAM) application type from the catalogue.

Fill General Details

FieldDescriptionExample
NameName of the Application. This has to be unique across your project and should not contain special characters.test-application
DescriptionProvide a meaningful description for your applicationthis is a test application

Authenticate

This template needs the source code to build and deploy the application. Authenticate with GitHub to connect an existing repository for the application.

This step will route you to the GitHub OAuth page where you can authenticate with your GitHub account and install the SkyU GitHub App to select an existing repository for GitOps.

Select Repository

Select the repository which holds the application code.

FieldDescription
Github AccountYour Github Organization / Account
RepositoryThe repository which holds the application code
BranchDefault branch for the repository. main is usally the default branch. Pipeline yamls will be stored here.

Configure Pipeline Triggers

You can configure the triggers per environment in this step defining the branches/tags in which the workflows are going to be Triggered. These will be prefilled with the standard conventions which you can override.

FieldDescriptionDefault
OnPipeline Trigger Eventpush
BranchesMultiple inputs for branch names or a regex. (Optional)main
TagsMultiple inputs for tag names or a regex (Optional)
PathsTo trigger on specific path changes in a repository (Optional)

Each environment will have a different set of triggers. You can configure the triggers for each environment. You can learn more about pipeline triggers in the Pipelines section.

Environment Variables

You can define custom environment variables that will be used during the pipeline execution. These variables can be leveraged to store sensitive information or configuration values, ensuring flexibility and customization for your deployment process.

Configure the Build Pipeline

You can use this step to configure how the AWS Serverless Application Model (SAM) app is built and deployed.

FieldDescriptionExample
AWS Cloud CredentialChoose the credential to use for deploying the SAM app.sam-cred
RegionSpecify the AWS region where the SAM app will be deployed.us-east-1
YAML PathPath to the SAM template YAML file in the repository./template.yaml
SAM Deployment CommandThe command used to deploy the SAM application. Default is sam deploy.sam deploy
SAM Build CommandThe command used to build the SAM application. Default is sam build.sam build
SAM Build ArgumentsAdditional key-value pairs of arguments to pass to the sam build command (Optional).key: --use-container value: true
SAM Deploy ArgumentsAdditional key-value pairs of arguments to pass to the sam deploy command. --stack-name is required.key: --stack-name value: my-stack
Additional StepsKey-value pairs for any additional custom steps or scripts to run after building and deploying (Optional).Name: post-deployment Run: echo "Deployment finished"

By selecting the "Create New Credential" option, you can link your AWS Cloud credential to the deployment process, enabling seamless access to AWS resources for building and deploying the SAM application. For a complete guide on linking Amazon Cloud, Look at the Integrations Section.

Create Application

Once you have filled all the details, click on the Create button to create the application.