-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
3400012
to
83dcbf7
Compare
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]] |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
dbed9ac
to
f5cdb30
Compare
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]>
Co-authored-by: Stéphane MERLE <[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]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
f5cdb30
to
7926bdb
Compare
Signed-off-by: jayfranco999 <[email protected]>
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") | ||
} |
There was a problem hiding this comment.
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
Related to: jenkins-infra/helpdesk#4316
draft PR (DO NOT MERGE)!!