#aws - March 2019

138 messages

:aws: Discussion related to Amazon Web Services (AWS)
Archive: https://archive.sweetops.com/aws/

Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Hah! Damn... looked like a good option
erik
erikover 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Just windows being windows. Getting in the way.
chrism
chrismover 7 years ago
Fricking safety gloves ... On a command line
Like people will pop it open and accidentally blow windows up
Gonzalo Peci
Gonzalo Peciover 7 years ago(edited)
Are you really doubting that?
Gonzalo Peci
Gonzalo Peciover 7 years ago
People bypass any warnings you put to them, even when it says "this will delete your system", and once its deleted, they write on reddit/twitter how bad Windows is, as its so easily deleted
chrism
chrismover 7 years ago
They can type sudo rm -Rf /
chrism
chrismover 7 years ago
you can't cure stupid
chrism
chrismover 7 years ago
The darwinian effect of letting the stupid rid the world of themselves is fine with me
http://www.weirduniverse.net/blog/comments/tullock_spike
chrism
chrismover 7 years ago
Realistically though if you broke your WSL install, you can just remove + reinstall it. It's supposed to be an app
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
aws-vault does not support SSO
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
for that, you need a purpose built tool
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
e.g. aws-okta for okta (by segmentio)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
ther are others for gsuite, etc
Igor
Igorover 7 years ago(edited)
If I am only using the master node for Redis in my application, is there any advantage to having more than 1 replica in ElastiCache cluster?
Maarten van der Hoef
Maarten van der Hoefover 7 years ago
Anyone who used ACM’s “private certificate authority (CA) ” for having a CA infra out of the box, for use with Kafka for example,
Maarten van der Hoef
Maarten van der Hoefover 7 years ago
Ah that’s cool, yes please.
Maarten van der Hoef
Maarten van der Hoefover 7 years ago
Yeah it’s quite expensive
btai
btaiover 7 years ago
what causes random spikes in read/write ipos on rds databases? where can i look to debug
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
I think RDS snapshots will influence that
btai
btaiover 7 years ago
hmm no snapshot at the time of the spike
btai
btaiover 7 years ago
has anyone here migrated hosted zones between aws accounts before?
btai
btaiover 7 years ago
I followed this guide to the tee, and it seems to have worked (running nslookup/dig shows the new nameservers) https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html
btai
btaiover 7 years ago
ive left the old hosted zone up while the switchover occurs (its supposed to take up to two days because of dns resolver caching) and its been 7 days now.
btai
btaiover 7 years ago(edited)
but it seems like i am getting err_name_not_resolved browser errors. this is happening extremely (emphasis on extremely) rarely but i was wondering is the hosted zone cutover not a completely clean and error prone process?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
It took us about a week as well
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
If you have business support it can be expedited
Alex Siegman
Alex Siegmanover 7 years ago
So in testing reference-architectures stuff, I made a few accounts I don't want anymore. I went in and closed the accounts but they are still in my org as "suspended" I've worked on hundreds of AWS accounts, but I realized today I've never closed one. Any clue on if those will eventually go away in my AWS Org?
chrism
chrismover 7 years ago
I hope this leads to some nice alternative tooling for handling auth etal from x-pack for those who just want a bloody search engine
chrism
chrismover 7 years ago
hope
chrism
chrismover 7 years ago
the current stuff aws have thrown up is a bit meh though
chrism
chrismover 7 years ago
bad the perf tool
chrism
chrismover 7 years ago
i dooooo like that ascii graphing 😄
mmuehlberger
mmuehlbergerover 7 years ago
Can you reach the machines in any way, like pinging them?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
security groups?
mmuehlberger
mmuehlbergerover 7 years ago
If you VPN you should have a private IP that needs access.
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
open the SG for all traffic and test if you can access it
mmuehlberger
mmuehlbergerover 7 years ago
Usually OpenVPN will put you in a subnet and you can give the all subnet IPs SSH access for your machines.
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
yea, then @mmuehlberger is correct, VPN uses you private local IP, open the SG for it
mmuehlberger
mmuehlbergerover 7 years ago
It uses your private IP in the VPC, that you get after connecting via VPN.
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
does your VPN have its own SG?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
then add it to the other SG
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
across accounts you have just a few choices I guess: in the bastion SG, open a hardcoded IP or CIDR from the VPC (not good), or do VPC peering; maybe there are other solutions?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
oh, then adding the VPC SG to ingress for the bastion SG should work?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
or, you know the CIDR of VPC 1, add it to ingress of VPC 2
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
(don’t remember if SGs accross accounts work with VPC peering)
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
if you know them and have peering, then yes
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
Nice 👍️
mmuehlberger
mmuehlbergerover 7 years ago
Great!
chrism
chrismover 7 years ago
anyone know of any magic ways to get Ubuntu 18lts to fuck off caching DNS
chrism
chrismover 7 years ago
or more concisely stopping it from seemingly caching things with short ttls for all of existence 😄
chrism
chrismover 7 years ago
nvm only on one box... at least its 5pm
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago(edited)
is it running nscd?
rohit
rohitover 7 years ago(edited)
Is there a way to log complete request body at loadbalancer level or VPC (AWS ELB/VPC) ?
Igor
Igorover 7 years ago
@rohit Why do you need to log it at the loadbalancer, and not at the server/lambda? Do you suspect the LB modifies the request somehow?
rohit
rohitover 7 years ago
nope, i don't see the request body when it reaches nginx
rohit
rohitover 7 years ago
so was wondering if there is a way to log the complete request body at loadbalancer
Igor
Igorover 7 years ago
I don't think so. I am surprised you don't have that capability within nginx
rohit
rohitover 7 years ago(edited)
I mean there is a way to do it in nginx but i want to log the entire request at the loadbalancer before it reaches my app
Igor
Igorover 7 years ago
I guess you could put something in front of the LB like a WAF or CloudFlare workers
Igor
Igorover 7 years ago
I am sure there is a way to do it, but I don't think AWS ELB has this logging ability
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Or use an NLB
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
then you'll see the full unadulterated request body at your app
rohit
rohitover 7 years ago
thanks @Erik Osterman (Cloud Posse) Will check if i can use NLB
rontron
rontronover 7 years ago
Has anyone experienced a delay between when you have an issued certificate in ACM (passed DNS validation and in us-east-1), and when it becomes available for use within CloudFront via the console?
rontron
rontronover 7 years ago
I'm creating a new CF distro, and have 2 available, issued certs in ACM in us-east-1. In CloudFront, the option to choose "Custom SSL Certificate" is not available
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
is that CF distro in us-east-1 as well?
rontron
rontronover 7 years ago
CF Distro is global, not associated to a specific region
rontron
rontronover 7 years ago
ooh nvm – i see them now. Looks like there's a bit of a lag between when the certificate is validated/issued within ACM and when its available for use with other AWS resources (at least CloudFront distros)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
it used to be at least that ACM certs were required to exist in us-east-1
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
though I think they recently lightened that restriction
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
(for CF distros)
rontron
rontronover 7 years ago
yeah i made sure the ACM certs were in that region... i didn't change anything, just reopened the new Distro console and finally the Custom SSL Certificate radio button became available. but there was at least a 20m lag between when ACM showed it issused and when i could associate to CF Distro 😞
rontron
rontronover 7 years ago
anyway, thanks for the attention haha
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
cool, thanks for the update
Tim Malone
Tim Maloneover 7 years ago
that lag seems unusual - but might’ve been a temporary/isolated thing
antonbabenko
antonbabenkoover 7 years ago
Guys, question about EC2 ENI limits which is related to ECS clusters. I have 2 EC2 instances, where each has 2 ENIs on it, which means I can launch just 2 containers there (right?). My tasks are rather lightweight, so I have a lot of unused resources but need to scale-out EC2 instances in the cluster because I need more tasks/containers running. I want to be able to run 10 small tasks on a single EC2 instance t3.large (for eg).

Are there better ways to utilise resources and have more ENIs available? I have been evaluating bigger instances also, but there are not so many ENIs comparing to amount of resources.

Can Fargate be a better option in term of price to utilise just what I need and get ENIs allocated as requested?

/cc @Maarten van der Hoef ☝️
Maarten van der Hoef
Maarten van der Hoefover 7 years ago
ENI limit is only applicable when you are using ECS tasks in awsvpc mode, normally you would use bridged mode with dynamic port allocation.
antonbabenko
antonbabenkoover 7 years ago
ok, let me read more about that one. Thanks!
Maarten van der Hoef
Maarten van der Hoefover 7 years ago
chrism
chrismover 7 years ago
If you create a module with a script in it how do you load the module script in the module?
template = "${file("./scripts/userscript.sh")}"
Loads based on the working path rather than the module.
chrism
chrismover 7 years ago
${path.module}
chrism
chrismover 7 years ago
one of those rtfm moments (aka rtfm find m useless go to github find other peoples shit)
Igor
Igorover 7 years ago
Is there a way to use a custom certificate with ElastiCache Redis for in-transit encryption? I can't seem to find a way.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Hrmmm good question
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
is there no way to specify the specific ACM cert to use?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
(haven't looked)
Igor
Igorover 7 years ago
Doesn't seem to be. "You don’t have to manage the lifecycle of your certificates because ElastiCache for Redis automatically manages the issuance, renewal, and expiration of your certificates." Sounds like I'm being ungrateful. 🙂
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Lol
Igor
Igorover 7 years ago(edited)
Unfortunately, this means I can't create a standardized hostname for the Redis cluster
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Crap, you’re right. That sucks!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Guess we have been using the canonical cname
Igor
Igorover 7 years ago
I tried using a CNAME, but it doesn't seem to work with Tls enabled
Igor
Igorover 7 years ago
Which makes sense given that the certificate subject doesn't match
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
It’s gotta be the hostname returned by redis
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Nothing you generate
Igor
Igorover 7 years ago
Yeah, exactly
Alex Siegman
Alex Siegmanover 7 years ago
What is this AWSome you speak of?
chrism
chrismover 7 years ago(edited)
RKE (ranchers version of KOPS) added a cluster.rkestate file output after its ran... yeeeeey more state to move around.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
It doesn’t support remote state?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Kops has a state bucket
chrism
chrismover 7 years ago
no; had to jimmy-rig s3 pull/push in
chrism
chrismover 7 years ago
which is shit
chrism
chrismover 7 years ago
but functionaly
chrism
chrismover 7 years ago
lol I keep getting told off by the anti-swearing bot 😆
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Wow surprised that would be the case. Not very team friendly.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Checkout goofys
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Also we have support for that in geodesic
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Mount s3 as a filesystem
chrism
chrismover 7 years ago
currently trying to decide if its best to packer build an nginx ami, then packer the configs in using that as a base, or sync the configs in on userscript
certainly know which would be quicker to update 😆
chrism
chrismover 7 years ago
goofys looks pretty neat; its always reassuring when somethings written in GO as I dont have to spend 20 minutes looking for the "wont work on x system" crap 😄
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Yea it’s a big qualifier for me
chrism
chrismover 7 years ago
Never blindly apply CIS benchmark changes 😅
Nothing like spending 2 hours wondering why you're K8 deployment has broken only to discover it disabled ipv4 forwarding ... docker kinda needs that 😛
chrism
chrismover 7 years ago
Because the code compiles into a single binary per OS / tends to be agnostic
chrism
chrismover 7 years ago
whereas try faffing with Python + Matlab on windows
Or anything node on windows 😄
chrism
chrismover 7 years ago
its nice to be able to drop a binary and run
chrism
chrismover 7 years ago
without having to install a crap load of dependencies
chrism
chrismover 7 years ago
When C# can do the same I may change my mind due to familiarity alone 😛
chrism
chrismover 7 years ago
loyalties are fleeting
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
fargate made easy
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago(edited)
@oscarsullivan_old you might dig this ☝️
Nikola Velkovski
Nikola Velkovskiover 7 years ago
Ansible, do you idempotence ? 🙂
Abel Luck
Abel Luckover 7 years ago
i saw in the sweetops docs somewhere that if you create an account when adding to an org (versus creating it independtly then importing it to the org) you can't ever spin out that account if necessary
Abel Luck
Abel Luckover 7 years ago
is that still the case?
Abel Luck
Abel Luckover 7 years ago(edited)
cause the new reference architecture impl seems to auto provision the sub-accounts rather
Tim Malone
Tim Maloneover 7 years ago
you can spin it out of the org, but you’ll usually have to do some extra config first
Tim Malone
Tim Maloneover 7 years ago(edited)

When you create an account in an organization using the AWS Organizations console, API, or AWS CLI commands, all the information that is required of standalone accounts is not automatically collected. For each account that you want to make standalone, you must accept the AWS Customer Agreement, choose a support plan, provide and verify the required contact information, and provide a current payment method.

https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html
Abel Luck
Abel Luckover 7 years ago
yea i've been trying to decide how finely to split stacks among accounts
Abel Luck
Abel Luckover 7 years ago
we have multiple deployments of our main stack for different customers, and each deployment needs its own dev/staging/prod
rohit
rohitover 7 years ago(edited)
I don’t understand the concept behind why we need to enable backups in order to use read replicas for aws rds?
rohit
rohitover 7 years ago
can anyone help me with this ?
Tim Malone
Tim Maloneover 7 years ago
Turn off backups, on the replicas? I think that depends on the engine version you’re using. Not supported on MySQL 5.5 IIRC, but is on MySQL 5.6, for instance. Is that what you meant?
rohit
rohitover 7 years ago(edited)
@Tim Malone I meant to ask - why do i have to enable backups in order to use read replicas ?