See our example repository at: https://github.com/citadel-runcloud/cdk-ecs-application
To get started, fork or clone the repository into a new GitHub repository under your Organization.
This example deploys a Docker image to ECS under a Citadel environment.
You will need:
Copy the Service Role ARN by clicking in the menu action as shown below:
Edit .cdk/cdk.config.json with your application and environment details:
name: Enter a name for your application
regionwith your environment details.
account_name: Usually the environment name, such as “Development” or “Production”
account: 12 digit AWS account ID
region: Short format of the AWS region your environment is using. Ex.: ap-southeast-1 or us-west-2.
domainwith the same domain you created in your environment in Citadel
hostnamewith the hostname you wish to access your web app. Leave the default if in doubt.
- You can leave the defaults on other settings.
Set the Service Role
Around line 41, update:
With the service role ARN obtained earlier.
Push code to the
main branch or the branch defined at the GitHub Workflow.
Under your GitHub repository, you should see a workflow similar to the screenshot below:
Click in the workflow and the last run to see the logs.
A successful deployment will look like this:
On this page