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

feat!(packer-images):Adding all Amazon builder logic for EC2 instances #1430

Closed
wants to merge 22 commits into from

Conversation

jayfranco999
Copy link
Collaborator

@jayfranco999 jayfranco999 commented Oct 2, 2024

Related to: jenkins-infra/helpdesk#4316

draft PR (DO NOT MERGE)!!

@jayfranco999 jayfranco999 marked this pull request as draft October 2, 2024 12:55
@jayfranco999 jayfranco999 requested a review from smerle33 October 2, 2024 12:56
.gitignore Outdated Show resolved Hide resolved
datasources.pkr.hcl Outdated Show resolved Hide resolved
@jayfranco999 jayfranco999 changed the title feat(jenkinsfile):Add build stage for EC2 templates feat!(packer-images):Adding all Amazon builder logic for EC2 instances Oct 3, 2024
variables.pkr.hcl Outdated Show resolved Hide resolved
sources.pkr.hcl Outdated Show resolved Hide resolved
sources.pkr.hcl Outdated
@@ -7,7 +7,7 @@ source "amazon-ebs" "base" {
secret_key = var.aws_secret_access_key

ami_name = "${local.image_name}-${var.architecture}-${local.now_unix_timestamp}"
instance_type = local.aws_spot_instance_types[var.architecture]
instance_type = [local.aws_spot_instance_types[var.architecture][0]]
Copy link
Contributor

Choose a reason for hiding this comment

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

sources.pkr.hcl Outdated

ami_name = "${local.image_name}-${var.architecture}-${local.now_unix_timestamp}"
# instance_type = local.aws_spot_instance_types[var.architecture]
instance_type = "t2.xlarge"
Copy link
Contributor

Choose a reason for hiding this comment

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

to show you that it work with one instance name

jayfranco999 and others added 6 commits October 13, 2024 22:08
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Comment on lines +20 to +27
variable "aws_access_key_id" {
type = string
default = env("AWS_ACCESS_KEY_ID")
}
variable "aws_secret_access_key" {
type = string
default = env("AWS_SECRET_ACCESS_KEY")
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to remove, first let's read the amazon builder provider documentation.
https://developer.hashicorp.com/packer/integrations/hashicorp/amazon#environment-variables

@dduportal
Copy link
Contributor

Closing in favor of #1448 #1447 and #1449

@dduportal dduportal closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants