generated from IliyanKostov9/repo-template-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AWS EC2 module and provider versions
- Loading branch information
1 parent
a7d4ae4
commit 7dc5b38
Showing
9 changed files
with
82 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Terraform_deploy_AWS_12_free_months | ||
name: terraform_deploy_passbolt | ||
#description: "Deploy Terraform After Infra" | ||
|
||
on: | ||
|
@@ -13,7 +13,8 @@ on: | |
description: | | ||
App to be deployed on 12 months free. | ||
options: | ||
- passbolt1o | ||
- passbolt | ||
- vpn | ||
required: true | ||
|
||
jobs: | ||
|
@@ -26,27 +27,27 @@ jobs: | |
pull-requests: write | ||
|
||
env: | ||
terraform_main_file_path: "terraform/apps/12_months_free/${{ inputs.app }}" | ||
terraform_main_file_path: "./terraform/apps/12_months_free/${{ inputs.app }}" | ||
terraform_var_common_file: "../../../envs/prod/common/env.tfvars" | ||
terraform_var_app_file: "../../../envs/prod/app/12_months_free/${{ inputs.app }}/env.tfvars" | ||
# Terraform secrets | ||
TF_CLOUD_ORGANIZATION: ${{ secrets.TF_ORG }} | ||
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }} | ||
TF_WORKSPACE: "github-aws-account-creation-actions-workspace" | ||
TF_WORKSPACE: "passbolt" | ||
# runs: | ||
# using: "composite" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# - name: Upload Configuration | ||
# uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
# id: plan-upload | ||
# with: | ||
# workspace: ${{ env.TF_WORKSPACE }} | ||
# directory: ${{ env.terraform_main_file_path }} | ||
# speculative: true | ||
- name: Upload Configuration | ||
uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: plan-upload | ||
with: | ||
workspace: ${{ env.TF_WORKSPACE }} | ||
directory: ${{ env.terraform_main_file_path }} | ||
speculative: true | ||
|
||
# Install the latest version of Terraform CLI | ||
- name: Setup Terraform | ||
|
This file contains 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
34 changes: 17 additions & 17 deletions
34
terraform/apps/12_months_free/passbolt/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
terraform { | ||
|
||
|
||
cloud { | ||
organization = "iliyangit-personal-tf-org" | ||
|
||
workspaces { | ||
name = "github-aws-account-creation-actions-workspace" | ||
name = "vpn" | ||
} | ||
} | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 4.16" | ||
version = "5.38.0" | ||
} | ||
} | ||
|
||
required_version = ">= 1.2.0" | ||
required_version = ">= 1.7.3" | ||
} | ||
|
||
provider "aws" { | ||
region = var.region | ||
|
||
} | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ variable "ec2_name" { | |
|
||
} | ||
|
||
|
||
variable "ec2_ami" { | ||
description = "AMI ID on Ireland" | ||
type = string | ||
|