-
Notifications
You must be signed in to change notification settings - Fork 28
Add Terraform deployment engine for cloud resources #56
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
Add Terraform deployment engine for cloud resources #56
Conversation
a5ea4db to
ff2efd7
Compare
f7d5ce9 to
cd09c7c
Compare
|
Have rebased the code in this PR following the 1.5.1 release and retested that L0 and L1 deployment and teardown with Terraform work ok. |
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.
Looking good. Tested successfully on L0 and L1 networking with local state, will set up remote state or wait for you to implement automatic remote state in cloudera-deploy to go with it.
|
Hey @Chaffelson Thanks for looking through this. Together with the updates to cloudera-deploy, this should be ready to retest now. |
|
Have updated the cloudera.exe Terraform PR following the release of the AWS provider. Thanks, |
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
…sources Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
This reverts commit 1360527. Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
…lates Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
20383f0 to
6a13b52
Compare
| when: infra__create_utility_service | ||
| block: | ||
| - name: Discover the Utility Instance details | ||
| community.aws.ec2_instance_info: |
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.
Use output variables in TF?
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.
As above, I will test this and submit a separate PR if it looks good.
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
|
Thanks for looking through the PR. I have updated the code to address most of the issues you spotted. Also retested the AWS Terraform deployment and teardown to make sure that still works. For things like using terraform output instead of Ansible-based discovery, I will test this separately and create a PR if all goes well. Jim |
* Add Terraform templates for AWS infra and roles * Update infrastructure and platform roles to execute Terraform tasks * Push Terraform template and workspace variables to common * Add S3 remote state for Terraform * Create timestamped artefact of the generated Terraform files * Refactor download of AWS policy docs to initialize * Add validation of variables used for Terraform * Update Terraform infra templates for L0, L1 and L2 networking Signed-off-by: Jim Enright <[email protected]>
Added option for Terraform deployment of the cloud resources at the infrastructure and platform run-levels.
Features:
infra_deployment_engineused to determine the choice of deployment engine (pure-Ansible or Terraform) for cloud resources.infra_type:localandremote_s3(S3 bucket for storage; DynamoDB for state locking) backend storage of the Terraform state.Draft PR has a
debug_terraformbool variable. This puts pause points before the main terraform steps allowing for review. These will be cleaned before the final PR.