admin管理员组文章数量:1122832
While upgrading packer version getting below error:
Error: Failed to initialize build "amazon-ebs" The builder amazon-ebs is unknown by Packer, and is likely part of a plugin that is not installed.
You may find the needed plugin along with installation instructions documented 904on the Packer integrations page.
[Container] 2024/11/19 17:19:12.070019 Command did not exit successfully cd $CODEBUILD_SRC_DIR/build_config/packer/deployami/ && packer validate ./packer.json exit status 1
[Container] 2024/11/19 17:19:12.074475 Phase complete: PRE_BUILD State: FAILED
[Container] 2024/11/19 17:19:12.074503 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: cd $CODEBUILD_SRC_DIR/build_config/packer/deployami/ && packer validate ./packer.json. Reason: exit status 1
Tried to upgrade amazon plugin: packer plugins install github/hashicorp/amazon This time throws some Ansible error:
amazon-ebs: TASK [aws-gather-facts-ec2 : Get EC2 tag value for Name] ***********************
amazon-ebs: task path: /etc/ansible/application/roles/aws-gather-facts-ec2/tasks/main.yml:43
amazon-ebs: fatal: [127.0.0.1]: FAILED! => {
amazon-ebs: "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'Name'\n\nThe error appears to be in '/etc/ansible/application/roles/aws-gather-facts-ec2/tasks/main.yml': line 43, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Get EC2 tag value for Name\n ^ here\n" amazon-ebs: }
- name: Get EC2 tag value for Name
set_fact:
ec2_instance_tag_name: "{{ ec2_tags.tags.Name }}"
tags:
- always
- base
Any suggestion would be appreciated ?
本文标签: ansibleHashicorp packer version upgrade to latest 1112 from 180Stack Overflow
版权声明:本文标题:ansible - Hashicorp packer version upgrade to latest 1.11.2 from 1.8.0 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736308916a1933827.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论