You need to upgrade to at least 1.2.0 or you can try to set skip_region_validation to true.
https://www.packer.io/docs/builders/amazon-ebs.html#skip_region_validation On Wed, May 23, 2018, 02:17 <[email protected]> wrote: > Hi all, > > I have added a new region, eu-west-3, for existing KMS aws ebs volume to > get encrypted in this new region. However, it gets failed with two errors. > However, everything works fine if I remove this new region. > > > [BETA: CentOS7-AWS-Dev] logger: upguard: node not found > uw1-dev-jks001.csodsandbox.corp [BETA: CentOS7-AWS-Dev] logger: upguard: > failed to find or create node to scan [BETA: CentOS7-AWS-Dev] logger: > upguard: failed to kick off logoff node scan against > uw1-dev-jks001.csodsandbox.corp [BETA: CentOS7-AWS-Ext] [1;32maws-ext > output will be in this color. [0m [BETA: CentOS7-AWS-Ext] [BETA: > CentOS7-AWS-Ext] 2 error(s) occurred: [BETA: CentOS7-AWS-Ext] [BETA: > CentOS7-AWS-Ext] * Unknown region: eu-west-3 [BETA: CentOS7-AWS-Ext] * > Region eu-west-3 is in region_kms_key_ids but not in ami_regions [BETA: > CentOS7-AWS-Int] [Packer-Build-CentOS7] Running shell script > > I'm on packer 1.1.0 on centos and ansible v2.5.1 running the packer build > script at > https://github.com/WeekendsBull/packerbuild-error/blob/master/centos7build.json > (currently the actual values got updated xxxx for security reason). > > > I have defined the variables as below. > > "variables": > { > "version" : "{{ user `version` }}", > .... > > "kms_key_id_int_us-west-1" : " > arn:aws:kms:us-west-1:xxxxxxxxxxx:key/xxxxx-xxxx-xxxx-xxxx-xxxxx", > "kms_key_id_ext_us-west-1" : " > arn:aws:kms:us-west-1:xxxxxxxxxxx:key/xxxxx-xxxx-xxxx-xxxx-xxxxx8", > "kms_key_id_ext_us-east-1" : " > arn:aws:kms:us-east-1:xxxxxxxxxxx:key/xxxxx-xxxx-xxxx-xxxx-xxxxx", > "kms_key_id_ext_eu-west-2" : " > arn:aws:kms:eu-west-2:xxxxxxxxxxx:key/xxxxx-xxxx-xxxx-xxxx-xxxxx", > "kms_key_id_ext_eu-central-1" : " > arn:aws:kms:eu-central-1:xxxxxxxxxxx:key/xxxxx-xxxx-xxxx-xxxx-xxxxx", > "kms_key_id_ext_eu-west-3" : " > arn:aws:kms:eu-west-3:xxxxxxxxxxx:key/xxxxx-xxxx-xxxx-xxxx-xxxxxx" > } ................................. ............................ > { > "name" : "aws-ext", > "type" : "amazon-ebs", ....................... > "force_deregister" : true, > "kms_key_id" : "{{user `kms_key_id_ext_us-west-1`}}", > "region_kms_key_ids" : { > "us-west-1": "{{user `kms_key_id_ext_us-west-1`}}", > "us-east-1": "{{user `kms_key_id_ext_us-east-1`}}", > "eu-west-2": "{{user `kms_key_id_ext_eu-west-2`}}", > "eu-central-1": "{{user `kms_key_ext_id_eu-central-1`}}", "eu-west-3": "{{user > `kms_key_id_ext_eu-west-3`}}", > }, > > "ami_regions" : [ > "us-west-1", > "us-east-1", > "eu-west-2", > "eu-central-1", "eu-west-3" > ], > Is there limit how many ebs volume I could encrypt with KMS key? > If I remove "eu-west-3": "{{user `kms_key_id_ext_eu-west-3`}}" & > "eu-west-3" under ami_regions, it works fine. > These error messages are really not making any sense to me since I have > defined eu-west-3 under ami_regions. > > * Unknown region: eu-west-3 * Region eu-west-3 is in region_kms_key_ids > but not in ami_regions > > > Any help or guidance will be appreciated > > John. > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/fd6f7553-e310-48a5-8518-db02931a431c%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/fd6f7553-e310-48a5-8518-db02931a431c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-h3bnJ%3D7F5uz02MFDc_D%2BN567vkyeKVWzHJK%3DS8ypotw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
