Major Hayden · @major
1268 followers · 961 posts · Server fosstodon.org

Now that awscli v2 is in @fedora, there's an upcoming change to remove the v1 version. 📦 ☁️

pagure.io/fesco/issue/3006

#aws #awscli #python #fedora

Last updated 1 year ago

Major Hayden · @major
1226 followers · 702 posts · Server fosstodon.org

Nice! awscli v2 is on its way to @fedora now! The package is called `awscli2`. 🎉 🎉 🎉 🎉 🎉

Lots of people pitched in for this effort and it's finally here.

#aws #cloud #fedora #awscli #python

Last updated 1 year ago

Sly Gryphon · @sgryphon
49 followers · 420 posts · Server qoto.org

So, vs . Looks to be ending up the same as Azure vs . If you already have the template, and deploy it once, it is good. But developing CLI scripts is quicker (debug one step at a time, rather than all at once). And templates run into the same dead ends: e.g. decides it needs to recreate the entire subnet, so it attempts to, but runs into an IP address conflict with the existing one, and the whole thing stops. There are things/changes that declarative approaches just can't do, and you need to use migrations (CLI scripts).

#aws #cloudformation #awscli #arm #AzureCLI

Last updated 2 years ago

earchibald · @lilith
57 followers · 394 posts · Server sackheads.social
Eric Hammond · @esh
938 followers · 734 posts · Server awscommunity.social

I'm a few months late noticing, but I'm glad to see that the aws-cli has added the ability to display the current credentials, or credentials for a specific config profile.

aws configure export-credentials

Using options, the results can be formatted as environment variables for eval and use by other tools.

I think this is especially useful if the config profile assumes a (cross-account) role, or you are using `aws sso login`.

awscli.amazonaws.com/v2/docume

#aws #awscli #security

Last updated 2 years ago

Caleb 🦈 · @cfultz
142 followers · 228 posts · Server cfultz.com

Okay so now I want to migrate from my service to something like or . Has anyone successfully mirrored from a Minio Object Store to another Object store? I attempted to sync using from my minio to DO and it keeps throwing "NoSuchKey" when I attempt to switch. Not sure what is going on. Everything looks identical as far as the data is concerned, but it's not working as expected (I guess... I'm new to s3 object stores). Any ideas?

#minio #digitalocean #wasabi #awscli

Last updated 2 years ago

Osor0s · @Osor0s
4 followers · 31 posts · Server infosec.exchange

When you are logged into the website, on the top right, chose "Security Credentials". Depending on permissions you can reset the password, get a new awscli key or reset the MFA device.

#aws #cloud #cloudhacking #awscli #hacking #infosec #cybersecurity #cloudsecurity #awssecurity

Last updated 2 years ago

Osor0s · @Osor0s
3 followers · 27 posts · Server infosec.exchange

Let's do something "creative":

Where can you get AWS credentials from?

Add a new vector or give more details for an answer that's already there, e.g. (1) IMDS (2) Instance Metadata Service v1 creds directly from 169.254.169.254/latest/meta-data/iam/security-credentials/<role-name>

#aws #cloud #cloudhacking #awscli #hacking

Last updated 2 years ago

Volkan Özçelik · @volkan
35 followers · 1223 posts · Server z2h.dev
Volkan Özçelik · @volkan
35 followers · 1223 posts · Server z2h.dev
Eric Hammond · @esh
845 followers · 632 posts · Server awscommunity.social

Bonus:

Allow defaults for the parameter values in the config file, as in:

role_arn=arn:aws:iam::{{acct=123456789012}}:role/{{role=readonly}}

#aws #awswishlist #awscli

Last updated 2 years ago

Eric Hammond · @esh
845 followers · 631 posts · Server awscommunity.social

I want to be able to set up an aws-cli config profile that includes parameter substitutions, and then specify the values for those parameters with command line options.

The command line could be:

aws s3 ls \
--profile assumewithmfa \
--param acct=123456789012 \
--param role=s3-readonly

and the config:

[profile assumewithmfa]
source_profile=user-main
role_arn = arn:aws:iam::{{acct}}:role/{{role}}
mfa_serial=arn:aws:iam::987654321098:mfa/user
region=us-east-1

#awswishlist #aws #awscli

Last updated 2 years ago

Neirin · @Neirin
80 followers · 63 posts · Server meow.social

Never change a running system...until you have to

#awscli #ecsli

Last updated 2 years ago

Eric Hammond · @esh
737 followers · 551 posts · Server awscommunity.social

@raoul
`aws s3 sync` is built on boto, but adds extra logic like adding in a content-type attribute, which is critical for static website hosting in S3.

I had this all working on my python2.6 AWS Lambda function which team for years, but when I upgraded to Python 3.9 it broke calling the `aws` included in the ZIP file.

I may be able to figure out how to fix it, but was hoping the intervening years had brought about a more standard aws-cli in Lambda.

#aws #lambda #awscli

Last updated 2 years ago

Eric Hammond · @esh
728 followers · 534 posts · Server awscommunity.social

I'm working to upgrade some old AWS Lambda functions, and have a question:

Does the AWS Lambda environment for Python 3.9 include the aws-cli anywhere?

If not, are there any modern instructions on the best way to include the aws-cli in a Lambda function?

I'm hoping the word "layer" is not in the answer, but I'll look at that if I must.

#aws #lambda #awscli

Last updated 2 years ago

Volkan Özçelik · @volkan
35 followers · 1223 posts · Server z2h.dev