Amazon ECS Anywhere enables customers to deploy native Amazon ECS tasks in on-premise or customer-managed infrastructure. It helps to reduce costs and mitigate complex local container orchestration and operations. ECS Anywhere allows you to deploy and run container applications in both on-premises and cloud environments. It removes the need for your team to learn multiple domains and skillsets and manage complex software on their own. This sample code setup ECS Anywhere service using AWS CDK stacks.
-
An active AWS account
-
AWS Command Line Interface (AWS CLI), installed and configured. For more information about this, see Installing, updating, and uninstalling the AWS CLI in the AWS CLI documentation.
-
AWS Cloud Development Kit (AWS CDK) Toolkit, installed and configured. For more information about this, see AWS CDK Toolkit (cdk command) in the AWS CDK documentation.
-
Node package manager (npm), installed and configured for CDK Typescript. For more information about this, see Downloading and installing Node.js and npm in the npm documentation.
Check out this APG Pattern for detailed deployment instructions: Manage on-premises container applications by setting up Amazon ECS Anywhere with the AWS CDK
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.