Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ubuntu] add aws ami source #1

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

[ubuntu] add aws ami source #1

wants to merge 7 commits into from

Conversation

jojand
Copy link
Collaborator

@jojand jojand commented Dec 13, 2023

Description

New tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
For new tools, please provide total size and installation time.

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@@ -170,8 +245,52 @@ source "azure-arm" "build_image" {
}
}

source "amazon-ebs" "ubuntu-base-2204" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new source for aws ami source

build {
sources = ["source.azure-arm.build_image"]
sources = var.sources
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input as variable with default value for backward compatibility reasons
azure is always build as default if no sources variable is provided

@@ -138,6 +138,81 @@ variable "vm_size" {
default = "Standard_D4s_v4"
}

variable "sources" {
type = list(string)
default = ["source.azure-arm.build_image"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input as variable with default value for backward compatibility reasons
azure is always build as default if no sources variable is provided

@jojand jojand force-pushed the add-ami-support branch 2 times, most recently from 7f820d6 to 2ff6585 Compare December 18, 2023 12:42
images/ubuntu/templates/ubuntu-22.04.pkr.hcl Show resolved Hide resolved
images/ubuntu/templates/ubuntu-22.04.pkr.hcl Show resolved Hide resolved
images/ubuntu/templates/ubuntu-22.04.pkr.hcl Outdated Show resolved Hide resolved
images/ubuntu/templates/ubuntu-22.04.pkr.hcl Outdated Show resolved Hide resolved
images/ubuntu/scripts/build/configure-environment.sh Outdated Show resolved Hide resolved
@ostefek99
Copy link

And please use packer fmt <file>. 🙏🏻

@jojand
Copy link
Collaborator Author

jojand commented Jan 8, 2024

And please use packer fmt <file>. 🙏🏻

applied for my changes

@jojand jojand requested a review from ostefek99 January 8, 2024 15:21
@jojand jojand requested a review from ostefek99 January 9, 2024 13:00
ostefek99
ostefek99 previously approved these changes Jan 9, 2024
@jizi jizi force-pushed the add-ami-support branch 2 times, most recently from a6f3337 to d2d7da4 Compare January 19, 2024 15:41
@jizi jizi force-pushed the add-ami-support branch 2 times, most recently from e7f8bd4 to 599286c Compare February 13, 2024 13:45
@jizi jizi force-pushed the add-ami-support branch from 599286c to f7aac0e Compare March 14, 2024 10:59
@jojand jojand force-pushed the add-ami-support branch 3 times, most recently from d67b4b4 to ef70640 Compare May 17, 2024 06:33
@jsfpdn jsfpdn force-pushed the add-ami-support branch from ef70640 to 3e88e86 Compare June 11, 2024 13:01
@jizi jizi force-pushed the add-ami-support branch from 3e88e86 to d01de85 Compare July 24, 2024 13:39
@jojand jojand marked this pull request as draft August 26, 2024 09:02
@jizi jizi force-pushed the add-ami-support branch 2 times, most recently from be13ab6 to 1058c9b Compare August 29, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants