-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from CIROH-UA/test_terraform
test terraform
- Loading branch information
Showing
7 changed files
with
72 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Validate research datastream terraform | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'research_datastream/terraform/**' | ||
- '.github/workflows/research_datastream_terraform.yml' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'research_datastream/terraform/**' | ||
- '.github/workflows/research_datastream_terraform.yml' | ||
jobs: | ||
validate-terraform: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
- name: Configure AWS | ||
run: | | ||
aws configure set aws_access_key_id ${{ secrets.aws_access_key_id }} | ||
aws configure set aws_secret_access_key ${{ secrets.aws_secret_access_key }} | ||
aws configure set region us-east-1 | ||
- name: Validate Terraform | ||
run: | | ||
cd research_datastream/terraform | ||
terraform init | ||
terraform validate | ||
terraform apply -var-file=./variables_gitactions.tfvars -auto-approve | ||
terraform destroy -var-file=./variables_gitactions.tfvars -auto-approve |
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
region = "us-east-1" | ||
sm_name = "datastreamconductor_github_actions" | ||
sm_role_name = "datastreamconductor_role_github_actions" | ||
starter_lambda_name = "ec2start_ami_github_actions" | ||
commander_lambda_name = "ec2commander_github_actions" | ||
poller_lambda_name = "CommandPoller_github_actions" | ||
checker_lambda_name = "S3ObjectChecker_github_actions" | ||
stopper_lambda_name = "EC2Stopper_github_actions" | ||
lambda_policy_name = "datastream_lambda_policy_github_actions" | ||
lambda_role_name = "datastream_lambda_role_github_actions" | ||
lambda_invoke_policy_name = "datastream_lambda_invoke_policy_github_actions" | ||
ec2_role = "datastream_ec2_role_github_actions" | ||
ec2_policy_name = "datastream_ec2_policy_github_actions" | ||
profile_name = "datastream_ec2_profile_github_actions" |