awsass
AWSASS is an assistant to AWS, mostly for running better scripts.
Installation
npm install awsass -g
Ephemeral execution on AWS
awsass --ecr-ecs-ephemeral-create --profile XXX --region XXX \
--execution-role-arn XXX --task-role-arn XXX
{
ephemeralId: 'XXX',
repositoryUri: 'YYY',
taskDefinitionArn: 'ZZZ'
}
awsass --ecr-ecs-push-new-revision --profile XXX --region XXX \
--container-name YYY --task-definition ZZZ \
--local-image-name XXX --image-name ZZZ:latest
awsass --ecs-run-on-fargate --profile XXX --region XXX \
--task-definition ZZZ --cluster-name AAA
awsass --ecr-ecs-ephemeral-destroy --profile XXX --region XXX \
--ephemeral-id XXX
License
Apache-2.0