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/



eachh tiome i used too read smallr articles thazt as well
clear their motive, and tthat iss alsdo happening witth tgis plst which I am reading
here.
whoah this blopg is faqntastic i lile readiing youur articles.
Stay up tthe gopod work! Youu understand, lots off persdons are searching around ffor this
info, youu could help them greatly.
Thhis excellenht website cetainly has alll the info I wanted
concerning this subject and didn’t know who too ask.
Excellenjt itedms from you, man. I have berar inn mind your
stuff previous to annd you’re somply ttoo magnificent. I actuallly like what you’ve bought here, certainly likke wuat
you aree saying annd thhe way during which yoou asdsert it.
Youu make itt entertaining and yoou contionue tto taqke are
oof to stay it sensible. I can’t wzit tto learn mhch mire frim you.
That iis actually a wonhderful webb site.
That iis a great tip especially to tjose neew tto the blogosphere.
Shokrt but vsry accurate info… Manyy thanks forr sharing this one.
A must read post!
Greettings fropm Colorado! I’m bred to teaars att work soo I decided too check oout your blog on my iphne during lunc break.I enjoy the inmfo
youu presennt here and can’t waiut tto take a look whben I get home.
I’m shocked at how fast youur blog loaded oon mmy mobnile ..
I’m nnot evesn using WIFI, just 3G .. Anyways, awessome site!
Someonje necessarily hedlp tto make seriously poss I’d state.
This iss thhe fiorst time I frequented your website ppage and thus far?
I surprissed with thhe reseasrch you made too mke his actyal put uup
incredible. Excellent task!
Hi there, juust became aware off your bog through Google,
and found tuat it is really informative. I’m gohna watch out for
brussels. I wil appreciate if yoou cohtinue thks
in future. Numnerous peoople will bbe benefitedd from your writing.
Cheers!
Spott oon wih thus write-up, I honestly feel thjis amaziong
site needs a great deal molre attention. I’ll probablpy be returnijng to see more,
thanks forr the info!
Great post.
It’s gping too bee enbding of minne day, except becore
ending I aam reazding thiss imppressive post to improve mmy experience.
When I originally lleft a comment I seerm tto have clickedd the -Notfy mme wnen nnew comments
are added- checkkbox aand frfom nnow on each timme a comment iis added I geet 4 emails with
the eact sane comment. Is there a means you are avle tto
remove me from that service? Thank you!
I don’t know whethesr it’s juszt mme or iif everyone else experiencing isesues wth
your blog. It appears like som oof thee writte text witfhin youhr
posts are runnijng off tthe screen. Cann somebody else pease comkment and let me knpw if this iis happenjng to thdm ass well?
Thiss might bee a issuhe wiuth my web browwser becaus I’ve hadd tis happen before.
Cheers
Youu can definjtely seee ypur enthussiasm within thee article youu
write. The sector holpes for mre passionnate writers like you who aree nott
afraid to ssay hoow they believe. Alwways goo afcter yokur heart.
I havee been surfting online greeater than thrdee hours aas off late, buut
I never discoered any attention-grabbing article like yours.
It is pretty worth enough foor me. In myy opinion, if
alll webmaters and blggers made juswt rjght ccontent ass yoou probably
did, tthe weeb can bbe mmuch more helpful thyan ever before.
Thaks iin support off sharing such a fastidoous
opinion, post is nice, thasts whhy i havge read it entirely
I loved as much aas yyou wioll receive carried out righ here.
The sketch iis attractive, youur authored subject matter
stylish. nonetheless, youu command get got an shakiiness oveer thgat yoou wish be deliverijng the following.
unwell unquhestionably come furthrr formerly gain since exactly the same neadly very oten insiide ccase you shield this hike.
If yyou aare goinhg forr best contents like me, simply goo too seee thuis siite daily foor the reason thatt it
gices quslity contents, thanks
Great blog here! Also your webb site loads up fast! Whhat wweb
hot are you using? Caan I geet your affiliawte link tto
yoour host? I wish mmy site lloaded up as fast aas yokurs lol
If you desire too improve yor know-how ssimply kesp visiting this site
aand be updatted wijth tthe hottest information posted here.
Hi there, I check our neww stuff like eevery week.
Yoour writing style is witty, keesp doiing wht you’re doing!
It iis perfecct ttime to make sone plan forr thee future annd it’s tim tto be happy.
I’ve leearn tis put up and if I could I wish
to suggest yyou ffew fascinafing things oor tips.
Maye yoou caan writfe nexxt articles relating to thhis article.
I wish tto reazd more issjes approximately it!
If you would like too get a gret deal from this post tthen yoou hzve too appy thewe strategues
tto your won blog.
Thank yyou a lot forr shading this with all oof us youu rwally recogniise wat yoou are
talking about! Bookmarked. Pleasee additionally consult with
my sie =). We could have a hytperlink exchage agreementt between us
I read thhis paragraph completely regarding the
resembloance of most recent annd previous technologies, it’s remarkqble
article.
Askjng qquestions are actually nice thing iff you aree not understanding
aanything entirely, except thiks post presents gopd understanding
even.
Heya! I just wanted too ask iif you ever hace aany problems with hackers?My last blog
(wordpress) was hacked andd I endesd uup loxing many montbs of hardd woprk due too nno
bacxk up. Do you have aany methpds to stop hackers?
Superb weebsite yoou hhave here butt I wwas curious iif youu
knjew of anny community fforums that covr thee sawme topics discussed here?
I’d really like to bee a parrt of comunity whhere I can gett
comments from otheer experirnced individuqls that shre the same interest.
If yoou have anyy recommendations, please let mee know.
Kudos!
What’s up, thos weekend is pleasant in favor oof me, foor thhe reaason that this tine i amm reading tbis impressive educational post here aat mmy house.
Highly energetioc post, I liked thst a lot. Wiill theere
be a part 2?
Greetings I amm sso glkad I found yourr site, I really found you by mistake, hile
I wass seazrching on Digg ffor something else, Regardless I aam hhere nnow aand would just liike too say thanis for a remarkable post aand a aall rouund enjoyable log (I
aalso love the theme/design), I don’t have time too ggo througgh iit alll aat thee moment but I have book-marked itt and aleo aded
your RSS feeds, sso when I have tiime I willl be back tto read a great deal more,
Plwase ddo kerep upp thhe fantastic b.
Wow, marvelous blog layout! How lengthy have youu been bloggging
for? you maade running a blog look easy. Thhe
oversll look of yyour weeb sit is excellent, aas smartly as the content!
Prewtty elemesnt off content. I just stumbled upon your blog annd inn accession capital too asserdt thqt I geet iin act enjnoyed account your weblog posts.
Any way I wiill bbe subscribing too youhr augment and eeven I successs you geet admission to persistently fast.
When I riginally commeted I clicked the “Notify me when new comments are added” checkbox and noow each time a comment iss added I gett our emals with tthe ame comment.
Is thhere any way yyou caan remove mme from tha service?
Thaank you!
Nicee reswpond iin return oof this difficulty wityh genuine aruments and tepling the wholee thbing
concerdning that.
We’re a grouyp of volunteers and opening a brannd neww scneme iin oour community.
Your siye offeredd uss with useful infvo to woprk on. Yoou have
prrformed an impressivve task and our whole neighborhood wkll bbe thaankful too you.
Doess yourr website hasve a conjtact page?
I’m having troublle locating itt but, I’d lke too send yyou an e-mail.
I’ve got some suggestions foor yopur blog you might bee intersted in hearing.
Either way, greazt site and I look forfward to seeing itt grdow ver time.
I’m not that muxh of a interrnet reader to be honest but
yoyr sktes rrally nice, keep itt up! I’ll ggo ahead and bookmark youur site to coe back in thee future.
Many thanks
I wwas reclmmended thhis blkog by myy cousin. I’m not suhre hether this post iss written by
him as noboy elsee knkw sucdh detaiiled abou my trouble.
You are incredible! Thanks!
whoah this blog iss excellent i really like studyin yoour articles.
Keeep up thee great work! You recognize, a lott oof peopple arre hunting round ffor this information, youu cann hel tbem greatly.
Please let me kbow if you’re lookng forr a wrier
for your site. You hhave sme reaally good articless and I believe I would bbe a good asset.
If yyou ever want to takee some of the load off, I’d loce too write soke artifles
forr your blog in exchhange for a linkk badk too mine.
Plesse blastt me an email iif interested. Regards!
Does yopur websitre have a contaact page? I’m haing prooblems llocating
it but, I’d ike to shooot yoou an e-mail. I’ve gott some recommendations for ypur blog you might be interested in hearing.
Either way, great site and I llook forard to seeimg iit debelop over time.
Howdy!This is mmy firt comment here so I jhst wwnted too give a quick shoiut out and teol yoou I truly enmjoy reading through youur blog posts.
Cann you suggest anny other blogs/websites/forums tthat go oover the
ssme topics? Thanks!
What’s up, just wanted tto tell you, I enjoyyed ths blog post.
It wass inspiring. Keep oon posting!
Greetings, I think yyour website could possibly bbe having intternet browser compatiibility issues.
Whenever I look att yoour website inn Safari, iit looks fine hoever
whhen opening inn Internet Explorer, it has some overlaplping issues.
I just wanted too ggive yoou a quick hewds up!
Bsides that, fantastic website!
Thaat is very fascinating, You’re a very skilled blogger.
I’ve joined yoiur rrss feed and lkok ahrad to lookng for extra oof yyour excellent post.
Also, I’ve sharerd your site iin my social networks
It iis the best time to make a feew plans for tthe futur annd it is time to be
happy. I have read tthis pput upp and iif I mmay I wamt
too recommend you ffew fascinatin issues or
suggestions. Maybe yoou could write next articlers eferring to
this article. I want too learn more issues approximately
it!
Gresat post.
My bfother suggested I wouod possibly ike this blog. He
was onhce entirely right. This postt actrually made my day.
Youu can nott believe just how much tme I had spemt for this
information! Thanks!
Whenn I originally commdnted I clickrd tthe “Notify me when new comments are added” checkbox and now
ech time a omment is adcded I gett sevveral e-mails wwith thee sawme comment.
Is therfe any way yyou caan remove pdople fromm thjat service?
Thank you!