generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 48
AAP-46677-updated-terraform.py #194
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
Open
shvenkat-rh
wants to merge
40
commits into
ansible-collections:main
Choose a base branch
from
shvenkat-rh:AAP-46677-workspace
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+623
−18
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
d36fba1
AAP-46677-updated-terraform.py
shvenkat-rh a21e750
AAP-46677-updated-terraform.py-conditions
shvenkat-rh f98b0f1
AAP-46677-fixed-black-errors
shvenkat-rh 53ea46c
AAP-46677-samll fixes
shvenkat-rh 138ad23
AAP-46677-isort-fixes
shvenkat-rh 8b02b2e
Merge branch 'main' into AAP-46677-workspace
shvenkat-rh 58bd19f
AAP-46677-updated changelogs
shvenkat-rh 052940e
AAP-46677-updated-changelog.yaml
shvenkat-rh 2e96f79
Merge branch 'main' into AAP-46677-workspace
shvenkat-rh 1863897
AAP-46677-updated-docs
shvenkat-rh f8e2d4a
AAP-46677-Fixed-Lint-Errors
shvenkat-rh 271a7f0
AAP-46677-updated-changelogs-fragments
shvenkat-rh 78845ed
AAP-46677-fixed-cli-logic
shvenkat-rh a2a22f2
AAP-46677-added-test-cases
shvenkat-rh 168b241
AAP-46677-fixed lint-errors
shvenkat-rh e4796c0
AAP-46677-updated-aliases
shvenkat-rh 0f04838
AAP-46677-updated-test_terraform.py
shvenkat-rh e837497
AAP-46677-Updated-Terraform.py-test_terraform.py
shvenkat-rh a5deae3
AAP-46677-fixed-lint
shvenkat-rh 27e3ddf
AAP-46677-fixed-lint
shvenkat-rh ea8be4c
AAP46677-push
shvenkat-rh c1fb892
AAP-46677-Fixed-Clean-TF-File
shvenkat-rh 9d7a1c1
AAP-46677-updated-tests
shvenkat-rh b7d9e46
AAP-46677-Lint
shvenkat-rh c800602
AAP-46677-Updated-Regex
shvenkat-rh 0ede33a
AAP-46677-Fixed-Pylint
shvenkat-rh 3ddefb4
AAP-46677-Fixed-PEP8-Errors
shvenkat-rh 7772ad8
AAP-46677-Simple-Fixes
shvenkat-rh 76bb8be
AAP-46677-Added-tests-for-workspace-extraction
shvenkat-rh f4efa4b
AAP-46677-Changes
shvenkat-rh 475fd6f
AAP-46677-Updated-no-workspace
shvenkat-rh 8e316f9
AAP-46677-Paramaterized-Test-Cases
shvenkat-rh 4e80e70
AAP-46677-revert
shvenkat-rh 0586b14
AAP-46677-Added-Test-Case
shvenkat-rh 6a4d300
AAP-46677-Fixed-Lints
shvenkat-rh a5b598d
AAP-46677-Parametrized-Extract-Workspace
shvenkat-rh 6b091f9
AAP-46677-Revert
shvenkat-rh 92d112d
AAP-46677-Reverted-Changelog.rst-change
shvenkat-rh 8b96745
AAP-46677-Reverted_Change_Logs
shvenkat-rh 578b3a5
AAP-46677-Updated-main.tf
shvenkat-rh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
changelogs/fragments/20250620-modules-terraform-update-workspace-logic.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- modules/terraform - Updated Workspace Logic for TFC/TFE and CLI (https://github.com/ansible-collections/cloud.terraform/pull/194) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
disabled # Require a HCP configuration account | ||
cloud/aws |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 4.16" | ||
} | ||
} | ||
required_version = ">= 1.10.0" | ||
cloud { | ||
organization = "{{ tfc_organization }}" | ||
hostname = "app.terraform.io" | ||
token = "{{ hcp_token }}" | ||
workspaces { | ||
name = "{{ tfc_workspace }}" | ||
} | ||
} | ||
} | ||
|
||
provider "aws" { | ||
region = "{{ aws_region }}" | ||
{% if aws_access_key and aws_secret_key %} | ||
access_key = "{{ aws_access_key }}" | ||
secret_key = "{{ aws_secret_key }}" | ||
{% else %} | ||
# Uses environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY | ||
{% endif %} | ||
} | ||
|
||
resource "aws_instance" "app_server_tf" { | ||
ami = "{{ ami_id }}" | ||
instance_type = "t2.micro" | ||
|
||
tags = { | ||
Name = "Instance_Cloud_TF" | ||
} | ||
} | ||
|
||
output "my_output" { | ||
value = aws_instance.app_server_tf | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.