2 Answers
- Newest
- Most votes
- Most comments
0
Please review the following documentation https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-cli-commands.html
As a workaround,
- you can Create a Lambda function and
- Create an IAM role for your Lambda function with the necessary permissions to update the ECS service and then
- Configure AWS ChatBot to allow invoking the Lambda function. This requires adding the necessary permissions to the AWS ChatBot IAM role.
- Use AWS ChatBot to invoke the Lambda function from Slack, passing the required parameters like cluster-name and service-name.
like the following
@aws lambda invoke --function-name your_lambda_function_name --payload '{"cluster-name": "cluster-a", "service-name": "service-a"}'
0
I reached out to AWS support and was informed that Chatbot currently does not support parameters without values. As a workaround, they suggested specifying it like this: --force-new-deployment true.
As they suggested, the following command succeeded.
@aws ecs update-service --cluster $cluster-name --service $service-name --force-new-deployment true --region ap-northeast-1
answered 2 years ago
Relevant content
asked 6 years ago
asked 2 years ago
asked 3 years ago
- AWS OFFICIALUpdated 3 months ago
