Skip to content

Instantly share code, notes, and snippets.

@eh-am
Last active January 6, 2020 20:19
Show Gist options
  • Save eh-am/d69361da910c3af69f7027a75b6ccfe7 to your computer and use it in GitHub Desktop.
Save eh-am/d69361da910c3af69f7027a75b6ccfe7 to your computer and use it in GitHub Desktop.
terraform learnings
Error: error using credentials to get account ID: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: Signature expired: 20191211T15
1610Z is now earlier than 20191211T160159Z (20191211T161659Z - 15 min.)                                                                     
        status code: 403, request id: a86a37c9-1c31-11ea-a958-0d2bb1a6cbbd  

https://serverfault.com/a/842343 tldr: it happened due to my system clock being "wrong" (i manually disabled auto sync since brazil lack of daylight saving in 2019 seems to not have been pushed to my OS [lack investigation])

jumpbox

Error: Error launching source instance: InvalidAMIID.NotFound: The image id '[ami-2757f631]' does not exist
        status code: 400, request id: 1f0f8795-b291-4215-8a6c-21bd0fe6a5d0

as per hashicorp/terraform#4367 (comment), images are different depending on the region

Host aws_public
        HostName _______
        IdentityFile /home/eduardo/projects/terraform/ec2/id_rsa
        User ubuntu
        #RequestTTY force

Host aws_private 
        HostName _______
        ProxyJump aws_public
        IdentityFile /home/eduardo/projects/terraform/ec2/id_rsa
        User ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment