I found the first AWS CLI command that I can only do with v2
After encountering obscure botocore version compatibility issues while implementing my latest LocalStack project, I realized that:
- there were, in fact, people that still use the v1 of the AWS CLI
- LocalStack is one of them
- my issues were caused by the discrepancy between using Localstack’s
awslocalwrapper (which uses AWS CLI V1) and my using the v2 for, well … everything else.
I’ll spare you the whole troubleshooting process because what’s interesting for us right now is that one of the steps I took to try and solve the issue was the one recommended by LocalStack, aka use the first version of the AWS CLI.
And there you have it:
aws sso login
That thing? That command only appeared in AWS CLIv2. You can’t use it with its predecessor.
Up until now I thought that the main changes between the two versions were an internal revamp of the CLI code and AWS’s refusal to distribute it through pypi as they used to do for V1 (and their reasons are … hard for me to understand, let’s say). But today I found an actual difference between the two declinations of the product.
At first I thought that logging with SSO was perhaps a somewhat recent feature, but it seems that the V1 is still in active development (or at least they regularly deploy new versions, with the latest in date from 3 days ago).
So far the mystery remains.
Speaking of versions…
No, API Gateway v2 is not a better implementation
Today I once again made the rookie mistake to start coding before fully thinking it through (#ADHD). I was happily implementing my aws_apigatewayv2_api when I remembered I had done something similar in the past and came back to check it. I saw that I did not use v2 resources then, so I searched for a reason in the Terraform docs (they usually mention that kind of caveat). Couldn’t find anything.
Took me a few minutes to realize that REST APIs are done using apigateway resources. apigateway_v2 is for HTTP and WebSockets types (although I seem to remember a aws:Recap talk that said something about REST and HTTP being the same, but not really … I’ll have to look it up again).
Anyways. If you do REST (and you most likely do): don’t use API Gateway V2.
I’m back in the norm and I don’t like it
At 7 months post endometriosis surgery I’m discovering a fun (no) problem that I never had before in my life, rather the opposite: I’m having super short menstrual cycles. To such an extent that I felt compelled to look it up and make sure that “””it’s normal”””. So, in case you didn’t know:
healthy menstrual cycles can last between 21 and 35 days
I found it funny at first, switching from 3 months to 3 weeks as I was recovering from the surgery. But three short cycles in, man, I’m tired!
Leave a comment