Run AWS CLI & CDK commands
The AWS CLI and AWS CDK actions let you interact with various Amazon Web Services resources and services, as well as provision and manage AWS Cloud Development Kit projects.
Image loading...Example pipeline with AWS CLI commands
Tip
If you are new to Buddy, check out our workflow guides that will tell you how to create build, test and deploy your type of application.
Hint
📚 Learn more about AWS CLI version 2 action features, integrations and alternatives.
Configure pipeline in Buddy
- Create a new project in Buddy and select your Git provider.
Image loading...Creating a new project
- Add a new pipeline and configure the details: name, trigger mode, and a branch from which you want to deploy.
Image loading...Adding a new pipeline
Configure the CLI action
Warning
Before you add the action, make sure that your AWS user has proper permissions assigned and full programmatic access to AWS.
- Look up and click the CLI on the action list to add it to the pipeline:
Image loading...AWS actions
- The action launches a container either with AWS CLI or AWS CDK CLI preinstalled in the container. Both actions are very similar and have five configuration tabs:
- Run – here you select the AWS integration and provide the commands to run
- Environment – if your process requires specific dependencies, you can install them here. The files will stay cached in the container for future pipeline runs
- Variables – here you can view your AWS integration variables, and create your own if required
- Conditions – here you configure the trigger conditions for which the action will run
- Options – here you define the action's name and behavior on failure and timeout
Image loading...AWS CLI action configuration
- When ready, click Add this action to finish configuration.
Success
Congratulations – you have just automated your AWS command execution! 🥳
Last update:
Sep 24, 2024
Sep 24, 2024