Skip to content

Add instance_type variable to aws-ec2 example (#794) - #797

Closed
thetelgote wants to merge 0 commit into
tungbq:mainfrom
thetelgote:fix/794-ec2-instance-type-variable
Closed

Add instance_type variable to aws-ec2 example (#794)#797
thetelgote wants to merge 0 commit into
tungbq:mainfrom
thetelgote:fix/794-ec2-instance-type-variable

Conversation

@thetelgote

Copy link
Copy Markdown
Contributor

Closes: #794

What is the purpose of the change

The EC2 instance's instance_type was hardcoded to t2.micro in main.tf, while ami, region, and Name were already exposed as variables. This adds an instance_type variable (default: t2.micro) to variables.tf and references var.instance_type in main.tf, keeping the example fully variable-driven and consistent with the rest of the file. No breaking change — default matches existing behavior.

@thetelgote
thetelgote requested a review from tungbq as a code owner July 25, 2026 19:28
@tungbq

tungbq commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Seems like your latest commit losted the content, I dont see related change in the PR, please double check @thetelgote

@thetelgote thetelgote closed this Jul 27, 2026
@thetelgote
thetelgote force-pushed the fix/794-ec2-instance-type-variable branch from 686c858 to 69318c4 Compare July 27, 2026 11:41
@thetelgote

Copy link
Copy Markdown
Contributor Author

Confirmed — this was already merged via #795 (same fix, same author).
I've synced this branch to upstream/main to show there's no remaining diff.
Closing this one to avoid a duplicate PR.

@thetelgote
thetelgote deleted the fix/794-ec2-instance-type-variable branch July 27, 2026 11:46
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.

Terraform aws-ec2 example: hardcoded instance_type reduces flexibility

2 participants