Questions tagged [infrastructure-as-code]
Use this tag for DevOps related questions about 'Infrastructure as Code' (IaC), which is a way to automate and backup environments.
50 questions
0 votes
0 answers
12 views
Are there best practices to maintain different versions/releases of a cluster architecture with FluxCD?
So far we use the default repo structure recommended in the Flux Flux D1 Architectural Reference with main and production branches. With more and more tenants, we need to provide different versions of ...
0 votes
0 answers
48 views
Manage infrastructure destruction using ArgoCD + FluxCD + Terraform
I am using a combination of ArgoCD, FluxCD and Terraform to provision infrastructure resources in a GitOps way. Each technology has each function: Terraform: a module that contains all the ...
1 vote
2 answers
675 views
How To Convert Jenkins String Parameter To Terraform Map Variable? (Invalid number literal)
Edit (8/16/2023): I figured it out! I'm trying to pass string parameter(s) to a Terraform map variable, but receiving error "Invalid number literal". Jenkinsfile: pipeline { agent any ...
0 votes
0 answers
83 views
Proper separation of IaC and code deployment via CI / CD
We're about to implement infrastructure-as-code on our project. We already have CI/CD pipelines that deploy: A CloudFormation stack for an ECS service Several CloudFormation stacks for AWS lamdbas (...
0 votes
1 answer
184 views
Accessing source files in triggered deployment build
How come my deployment pipeline cannot see the terraform files in my respository? In Azure Devops I have a single repo for a small app, with a simple folder structure main ├── pipelines build....
4 votes
2 answers
1k views
Cloud-Init Script Won't Run?
I am working through this Terraform tutorial, which boots up a Go web app on an EC2 instance, using Terraform and cloud-init. This is my Terraform config file: terraform { required_version = "&...
0 votes
1 answer
66 views
Ansible network automation: log all commands from multiple plays
I'm trying to write a script to publish basic configurations for any new devices. Also to assert compliancy of basic configuration for devices in production. Trying to gather all the lines executed, ...
3 votes
1 answer
130 views
How to automate initial server configuration?
I’m trying to add new nodes (Linux servers) to my cluster but I have to first configure my nodes properly, i.e. setting up the firewall, closing ports, disabling password login, setting up git, etc… ...