Questions tagged [terraform]
For questions about Terraform, an open source tool to maintain infrastructure.
5
questions
57
votes
7answers
23k views
How can I manage secrets in .tf and .tfstate?
I would like to use the Terraform MySQL Provider to keep a list of mysql users and grants handy for creating new test environments. The .tf and .tfstate files both seem to want to store the MySQL ...
28
votes
2answers
27k views
How to use cloud-init with Terraform?
I am working with Digital Ocean and Terraform and I already can automate the domain, subdomain, network preferences and the host but there is a section called User data that looks like this:
The ...
9
votes
1answer
2k views
Terraform: How to support releasing new versions of the code, running in parallel with the last stable release?
I have one service in production (on AWS), which follows the immutable server pattern. Its deployment looks like this:
Create a new AMI with Packer
Create a new CloudFormation stack, starting with an ...
1
vote
1answer
145 views
What does “eksctl create iamserviceaccount” do under the hood on an EKS cluster?
AWS supports IAM Roles for Service Accounts (IRSA) that allows cluster operators to map AWS IAM Roles to Kubernetes Service Accounts.
To do so, one has to create an iamserviceaccount in an EKS cluster:...
0
votes
1answer
2k views
Terraform | Upgrade to 0.12 error Reference to “count” in non-counted context
I'm trying to upgrade terraform from 0.11 to 0.12 but receiving error:
Error: Reference to "count" in non-counted context
on main.tf line 33, in data "aws_subnet" "public":
33: id = data....