Let’s say you have an account in Amazon Web Services (AWS) and got some instance running under an Elastic Container Services (ECS).
You had it running OK, until suddenly got the bills charging for the CloudWatch usage.
You go in the AWS console and checked the way to disable the Container Insight for the running ECS, and found out there is no button for that.
And need to use aws-cli command as below to disable it.
aws ecs update-cluster-settings --cluster ${clustername} --settings name=containerInsights,value=disabled --region ${AWS_REGION}
And then realised you don’t have aws-cli to run in local at the moment.
Here is how to install the aws-cli in the local machine and get the AWS_SECRET_KEY for the first time.
You start to install it with the following instruction.
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target
Then verify the installation is correct with
which aws
it correct it would return the following string
/usr/local/bin/aws
and also
aws --version
aws-cli/2.1.13 Python/3.7.4 Darwin/19.6.0 exe/x86_64 prompt/off
After that you need to configure it for the first time using the following command
aws configure
it will prompt to enter the AWS ID, AWS SECRET KEY and region.
You can find this information from the AWS IAM -> Roles -> Security Credentials.
Once logged,
it will create a file under the following folder
~/.aws/config
[default]
region = Singapore
output = json
~/.aws/credential
aws_access_key_id = xxx
aws_secret_access_key = yyyy
after that you can use to disable the container insight with the following command
export AWS_REGION=ap-southeast-1
export clustername=wp-namran
aws ecs update-cluster-settings --cluster ${clustername} --settings name=containerInsights,value=disabled --region ${AWS_REGION}
response
Verify again at the console.
Done, that’s all for now.
refs:
https://docs.aws.amazon.com/cli/latest/userguide/cli-services-iam-create-creds.html
https://ecsworkshop.com/container_insights/cleanup/
xCiFxsYedlA
iCikpyyhfTx
oFAyA7YyvzC
bOdNSQE8COM
bX9j3hhS9sM
jY2alco2LZ5
NdPuHOBSQGx
ukq0LiR8saX
lF8Ly4YxrMA
F2xiypbvrYS
AG1nF4LigES
U2vDZW0BoNI
IIZeRAyBUYV
s9qkHffpQ1K
0RRJy8hmfWC
pyDfCwpyGlg
AugzKv8qoLJ
9OX8lhesOIn
g0LVhkahQEk
C3RKZ4Wljep
UwM7pJwIz6H
gvD2hWWoUOq
KNgbwzmC31j
O9XNZ7wBM8P
Jwyh5bWseZ2
howlY10TPrv
Your article helped me a lot, is there any more related content? Thanks!
I always spent myy halof an hoiur too read this blog’s articles everyday alonbg wit a
mugg oof coffee.
Hello mates, how iis the whole thing, aand what yyou would like too
say oon thee toplic of thius post, in my viiew itts in fact amazingg in favor of me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/zh-TC/register-person?ref=VDVEQ78S
صندلی زیر قیمت بازار
与蜥蜴发生性关系
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/register?ref=P9L9FQKY
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/sl/register-person?ref=OMM3XK51
Hello my friend! I wish to say that this article is awesome, nice written and include approximately all significant infos. I’d like to see more posts like this.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Your article helped me a lot, is there any more related content? Thanks!
Look what I ground https://www.cornbreadhemp.com/pages/can-thc-gummies-be-shipped-internationally
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.