How to pass a variable from a Root Module down to a child module? Terraform
I'm not understanding the usage of Output Variables correctly or something ... the documentation is confusing and I can't find examples online.
Structure:
|- /api/datasources
|--------------------- dev.tf
main.tf
I understand how to broadcast the output, but how do I consume it from the child element?
namely ... SSM parameter value..
-----------------------------
module "transfer" {
source = "./api/datasources"
api_id = "${var.api_id}"
}
--------------------------
output "api_id" {
value = data.aws_ssm_parameter.myapi.value
}
------------------
The child module (datasources) needs to consume the output of this ... but HOW DO I pass it thru the module?
How do I consume the api_id inside of /api/datasources/dev.tf?? Here is dev.tf:
---------------------
resource "aws_instance" "name"{
api_id = var.api_id
}
---------------------
Help... please
https://redd.it/euv4n3
@r_devops
I'm not understanding the usage of Output Variables correctly or something ... the documentation is confusing and I can't find examples online.
Structure:
|- /api/datasources
|--------------------- dev.tf
main.tf
I understand how to broadcast the output, but how do I consume it from the child element?
namely ... SSM parameter value..
-----------------------------
module "transfer" {
source = "./api/datasources"
api_id = "${var.api_id}"
}
--------------------------
output "api_id" {
value = data.aws_ssm_parameter.myapi.value
}
------------------
The child module (datasources) needs to consume the output of this ... but HOW DO I pass it thru the module?
How do I consume the api_id inside of /api/datasources/dev.tf?? Here is dev.tf:
---------------------
resource "aws_instance" "name"{
api_id = var.api_id
}
---------------------
Help... please
https://redd.it/euv4n3
@r_devops
reddit
How to pass a variable from a Root Module down to a child module?...
I'm not understanding the usage of Output Variables correctly or something ... the documentation is confusing and I can't find examples...
Next Generation Machine Learning IoT/Embedded Security
Hi guys!
We are working on an embedded security project. We actually released our first version targeting some webserver process in an OpenWRT on ARM32, in the following weeks we will release MIPS and ARM64 version too.
Hope you like and please give us suggestions!
Github: [https://github.com/Exein-io](https://github.com/Exein-io)
https://redd.it/euliln
@r_devops
Hi guys!
We are working on an embedded security project. We actually released our first version targeting some webserver process in an OpenWRT on ARM32, in the following weeks we will release MIPS and ARM64 version too.
Hope you like and please give us suggestions!
Github: [https://github.com/Exein-io](https://github.com/Exein-io)
https://redd.it/euliln
@r_devops
GitHub
Exein.io
Security of Things. Exein.io has 13 repositories available. Follow their code on GitHub.
Falco vs OpenShift Security Constraints
Hi!
Does anybody knows the main differences between these two alternatives regarding security on Kubernetes? I've found no paper/video explaining it. What do you use on your day to day and how is your experience with it?
Thanks!
https://redd.it/eukuor
@r_devops
Hi!
Does anybody knows the main differences between these two alternatives regarding security on Kubernetes? I've found no paper/video explaining it. What do you use on your day to day and how is your experience with it?
Thanks!
https://redd.it/eukuor
@r_devops
reddit
Falco vs OpenShift Security Constraints
Hi! Does anybody knows the main differences between these two alternatives regarding security on Kubernetes? I've found no paper/video explaining...
DevOps or Agile?
Is DevOps a part of Agile, or is Agile a part of DevOps? Are they different things all together? SAFe believes DevOps (CI/CD) is part of overall Agile. I’ve heard and used both terms as parts of each other and their own items. I find it depends on the audience. This sub seems to be mostly focused on the technical pipeline piece of DevOps. Is that the “right” definition?
Maybe they’re just buzzwords with no clear definition...
https://redd.it/euys5d
@r_devops
Is DevOps a part of Agile, or is Agile a part of DevOps? Are they different things all together? SAFe believes DevOps (CI/CD) is part of overall Agile. I’ve heard and used both terms as parts of each other and their own items. I find it depends on the audience. This sub seems to be mostly focused on the technical pipeline piece of DevOps. Is that the “right” definition?
Maybe they’re just buzzwords with no clear definition...
https://redd.it/euys5d
@r_devops
reddit
DevOps or Agile?
Is DevOps a part of Agile, or is Agile a part of DevOps? Are they different things all together? SAFe believes DevOps (CI/CD) is part of overall...
How to move to using infrastructure as code / configuration management / devops tools in a monolithic environment?
Old school sysadmin here, and I am struggling to find a value add that I can use as a justification to start such a project in a windows environment. The idea of ansible/chef/terraform sound amazing, but we already have tools to do most of the things I read about and none of them require messing with YAML or learning python. We are still buying software from vendors that are struggling with the concept of virtualization & server core let alone stateless containers. We don't do much in-house dev work and most of apps are typical 3 tier (SQL/APP/WEB). So, where could I find value with these tools?
https://redd.it/euyzk6
@r_devops
Old school sysadmin here, and I am struggling to find a value add that I can use as a justification to start such a project in a windows environment. The idea of ansible/chef/terraform sound amazing, but we already have tools to do most of the things I read about and none of them require messing with YAML or learning python. We are still buying software from vendors that are struggling with the concept of virtualization & server core let alone stateless containers. We don't do much in-house dev work and most of apps are typical 3 tier (SQL/APP/WEB). So, where could I find value with these tools?
https://redd.it/euyzk6
@r_devops
reddit
How to move to using infrastructure as code / configuration...
Old school sysadmin here, and I am struggling to find a value add that I can use as a justification to start such a project in a windows...
How do you folks implement load shedding?
A common recommendation for running high availability systems is [load shedding](https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/). Last year I personally experienced an outage that was exacerbated by a lack of load shedding. I can find a handful of resources talking about this strategy but none touch on the practical aspects: Okay, I want to implement load shedding, how do I do that? What software can I use?
I've been using HAProxy as a reverse proxy in front of my application, which [has some queuing features](https://cbonte.github.io/haproxy-dconv/2.1/configuration.html#timeout%20queue) that I was able to work into a primitive load shedding system. Unfortunately, I'm going to have to move away from it (or pair it with nginx or similar) because HAProxy [doesn't support request buffering](https://www.mail-archive.com/[email protected]/msg23074.html).
Wondering what everybody else's experience is with this.
https://redd.it/euu7rw
@r_devops
A common recommendation for running high availability systems is [load shedding](https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/). Last year I personally experienced an outage that was exacerbated by a lack of load shedding. I can find a handful of resources talking about this strategy but none touch on the practical aspects: Okay, I want to implement load shedding, how do I do that? What software can I use?
I've been using HAProxy as a reverse proxy in front of my application, which [has some queuing features](https://cbonte.github.io/haproxy-dconv/2.1/configuration.html#timeout%20queue) that I was able to work into a primitive load shedding system. Unfortunately, I'm going to have to move away from it (or pair it with nginx or similar) because HAProxy [doesn't support request buffering](https://www.mail-archive.com/[email protected]/msg23074.html).
Wondering what everybody else's experience is with this.
https://redd.it/euu7rw
@r_devops
Aws
Using load shedding to avoid overload | AWS Builder Center
How Amazon uses load shedding to stay available under overload, rejecting excess work early so the system keeps serving requests it can handle.
I wrote a self-hosted slack bot that will notify you when you are mentioned in on GitHub projects or Organizations in Lambda.
GitHub project: https://github.com/bagel-dawg/github-slack-mentions
I was tired of having to check my email to find out if my username was mentioned, or if my PRs were approved/commented on. It also has the ability to remind you daily of any notifications that are still on-going.
The reminders functionality assumes it will be used with an organization, but the mentions functionality will work with standalone repositories OR organizations.
It is based on AWS API Gateway+Lambda integration proxy and DynamoDB with 2 indexes for key+value storage. It can be deployed manually, but there is also a serverless.yaml for convenience.
https://redd.it/euxzrx
@r_devops
GitHub project: https://github.com/bagel-dawg/github-slack-mentions
I was tired of having to check my email to find out if my username was mentioned, or if my PRs were approved/commented on. It also has the ability to remind you daily of any notifications that are still on-going.
The reminders functionality assumes it will be used with an organization, but the mentions functionality will work with standalone repositories OR organizations.
It is based on AWS API Gateway+Lambda integration proxy and DynamoDB with 2 indexes for key+value storage. It can be deployed manually, but there is also a serverless.yaml for convenience.
https://redd.it/euxzrx
@r_devops
GitHub
bagel-dawg/github-slack-mentions
Send slack DMs from GitHub mentions or events. Contribute to bagel-dawg/github-slack-mentions development by creating an account on GitHub.
Can I remove unicode in ansible?
So i have u' in the list. it is coming from using json query and cat command. How can remove this unicode.
ex. \[u' /root, /my desktop/documents\] -> json query filter
\[u' cpu mhz: 2340.895} -> cat command
https://redd.it/ev12dz
@r_devops
So i have u' in the list. it is coming from using json query and cat command. How can remove this unicode.
ex. \[u' /root, /my desktop/documents\] -> json query filter
\[u' cpu mhz: 2340.895} -> cat command
https://redd.it/ev12dz
@r_devops
reddit
Can I remove unicode in ansible?
So i have u' in the list. it is coming from using json query and cat command. How can remove this unicode. ex. \[u' /root, /my...
How can i add human readable on json query in ansible?
So i add json\_query in ansible for ansible mount point. In size total of mount point shows bytes, i wanted to show in gb or mb . I tried to add human readable as a filter but gives me an error. the answers are in brackets list.
https://redd.it/ev0t2e
@r_devops
So i add json\_query in ansible for ansible mount point. In size total of mount point shows bytes, i wanted to show in gb or mb . I tried to add human readable as a filter but gives me an error. the answers are in brackets list.
https://redd.it/ev0t2e
@r_devops
reddit
How can i add human readable on json query in ansible?
So i add json\_query in ansible for ansible mount point. In size total of mount point shows bytes, i wanted to show in gb or mb . I tried to add...
What’s the value of CI with Jenkins?
I’m new to Jenkins and I took a look at a build log and it appears to download and install all package requirements for a job every time it runs. If there are a ton of jobs that runs hourly, wouldn’t downloading and re-installing it take more time, bandwidth and processing power? Why wouldn’t one just have it run as a cron job with all dependencies already downloaded and installed?
https://redd.it/euvbhd
@r_devops
I’m new to Jenkins and I took a look at a build log and it appears to download and install all package requirements for a job every time it runs. If there are a ton of jobs that runs hourly, wouldn’t downloading and re-installing it take more time, bandwidth and processing power? Why wouldn’t one just have it run as a cron job with all dependencies already downloaded and installed?
https://redd.it/euvbhd
@r_devops
reddit
What’s the value of CI with Jenkins?
I’m new to Jenkins and I took a look at a build log and it appears to download and install all package requirements for a job every time it runs....
DevOps entry level job (USA)
Hello everyone.
Im an MBA graduate and I’m looking for an entry level devops engineer job. I don’t have the hands on experience but have the knowledge of how it works. Internship, junior level, part time or full time, any forms of job would be fine w me. I just want to learn and have real time work experience to start my career in IT.
Any help would be appreciated. Thank you. (:
https://redd.it/eutl5c
@r_devops
Hello everyone.
Im an MBA graduate and I’m looking for an entry level devops engineer job. I don’t have the hands on experience but have the knowledge of how it works. Internship, junior level, part time or full time, any forms of job would be fine w me. I just want to learn and have real time work experience to start my career in IT.
Any help would be appreciated. Thank you. (:
https://redd.it/eutl5c
@r_devops
reddit
DevOps entry level job (USA)
Hello everyone. Im an MBA graduate and I’m looking for an entry level devops engineer job. I don’t have the hands on experience but have the...
Azure dashboards
all,
Is it possible to display list of VM's matching with a criteria on a dashboard? Criteria could be a matching tag.
https://redd.it/euthew
@r_devops
all,
Is it possible to display list of VM's matching with a criteria on a dashboard? Criteria could be a matching tag.
https://redd.it/euthew
@r_devops
reddit
Azure dashboards
all, Is it possible to display list of VM's matching with a criteria on a dashboard? Criteria could be a matching tag.
What administrative process is involved when your company decides on adopting a new tool or tech?
I'm sure answers will vary. Some companies are very ad hoc, some have a team that considers new tools. How does yours operate?
https://redd.it/eur36z
@r_devops
I'm sure answers will vary. Some companies are very ad hoc, some have a team that considers new tools. How does yours operate?
https://redd.it/eur36z
@r_devops
reddit
What administrative process is involved when your company decides...
I'm sure answers will vary. Some companies are very ad hoc, some have a team that considers new tools. How does yours operate?
When is a DevOps Engineer's day?
Hi y'all!
Some days ago I was interested this little question. Because the developers have their professional day as well as sysadmins, web-developers and QA-engineers. but nowhere I found any mention of DevOps Engineer's day.
Does somebody know when we may celebrate this day?
https://redd.it/ev8yyk
@r_devops
Hi y'all!
Some days ago I was interested this little question. Because the developers have their professional day as well as sysadmins, web-developers and QA-engineers. but nowhere I found any mention of DevOps Engineer's day.
Does somebody know when we may celebrate this day?
https://redd.it/ev8yyk
@r_devops
reddit
When is a DevOps Engineer's day?
Hi y'all! Some days ago I was interested this little question. Because the developers have their professional day as well as sysadmins,...
Whats wrong with Jenkins?
I've been learning up on the various CI/CD tools (there are so many!) and every discussion I see on here, people are avoiding Jenkins. I'm I big fan of the CloudBees podcast, but haven't tried Jenkins yet myself.
Currently I'm using CircleCI, GCP Cloud Build, and AWS CodePipeline. I'm also just starting a Travis CI experiment.
Whats wrong with Jenkins?
Is it worth learning for my future projects?
**Is it worth learning for my career progression if I want to job hunt?**
https://redd.it/ev9gtx
@r_devops
I've been learning up on the various CI/CD tools (there are so many!) and every discussion I see on here, people are avoiding Jenkins. I'm I big fan of the CloudBees podcast, but haven't tried Jenkins yet myself.
Currently I'm using CircleCI, GCP Cloud Build, and AWS CodePipeline. I'm also just starting a Travis CI experiment.
Whats wrong with Jenkins?
Is it worth learning for my future projects?
**Is it worth learning for my career progression if I want to job hunt?**
https://redd.it/ev9gtx
@r_devops
reddit
Whats wrong with Jenkins?
I've been learning up on the various CI/CD tools (there are so many!) and every discussion I see on here, people are avoiding Jenkins. I'm I big...
Learning Vim macros in 4 minutes read
Hi everyone, I published a short blog post explaining Vim macros which I think are essential to any user. I would love any kind of feedback!
[https://dev.to/prodopsio/unleash-the-power-of-vim-macros-in-4-minutes-35a8](https://dev.to/prodopsio/unleash-the-power-of-vim-macros-in-4-minutes-35a8)
https://redd.it/ev86ny
@r_devops
Hi everyone, I published a short blog post explaining Vim macros which I think are essential to any user. I would love any kind of feedback!
[https://dev.to/prodopsio/unleash-the-power-of-vim-macros-in-4-minutes-35a8](https://dev.to/prodopsio/unleash-the-power-of-vim-macros-in-4-minutes-35a8)
https://redd.it/ev86ny
@r_devops
DEV Community
Unleash the power of Vim Macros in 4 minutes
In my first Vim post I had a long discussion with one of the readers over macros. He just couldn't ge...
Build logs and secrets
How do you prevent a commit someone made causing secrets in a CI system getting leaked to build logs.
Most CI systems have a way for you to describe the CI steps within the repo. This can be as simple as someone creating a PR with the following:
commands:
description: "This is needed to run the build"
steps:
- run: python -c \"import os; print(os.environ['SUPER_SECRET'])"
Some CI systems know to filter build logs for secrets they are aware of but this doesn't particularly prevent someone from exfiltrating it.
commands:
description: "Save this important secret so I don't lose it"
steps:
- run: ./http_exfiltrate_secret.sh
There appears to be different strategies and tactics for preventing this, but I'm wondering what strategies there are if you have a monorepo/ consolidated repo where both the CI and the application are described.
https://redd.it/ev7jao
@r_devops
How do you prevent a commit someone made causing secrets in a CI system getting leaked to build logs.
Most CI systems have a way for you to describe the CI steps within the repo. This can be as simple as someone creating a PR with the following:
commands:
description: "This is needed to run the build"
steps:
- run: python -c \"import os; print(os.environ['SUPER_SECRET'])"
Some CI systems know to filter build logs for secrets they are aware of but this doesn't particularly prevent someone from exfiltrating it.
commands:
description: "Save this important secret so I don't lose it"
steps:
- run: ./http_exfiltrate_secret.sh
There appears to be different strategies and tactics for preventing this, but I'm wondering what strategies there are if you have a monorepo/ consolidated repo where both the CI and the application are described.
https://redd.it/ev7jao
@r_devops
reddit
Build logs and secrets
How do you prevent a commit someone made causing secrets in a CI system getting leaked to build logs. Most CI systems have a way for you to...
ML for Distributed Systems: Conceptual Background and Metrics
I'm putting together a [series of posts](https://medium.com/@mattstump/modeling-complex-systems-part-1-distributions-850d3591b8f8) that go through the step by step process in building machine learning models that out perform humans in performing root cause analysis and performance tuning. The first post covers how humans perform the task as a way to set the stage for how to automate the process.
https://redd.it/evcpwv
@r_devops
I'm putting together a [series of posts](https://medium.com/@mattstump/modeling-complex-systems-part-1-distributions-850d3591b8f8) that go through the step by step process in building machine learning models that out perform humans in performing root cause analysis and performance tuning. The first post covers how humans perform the task as a way to set the stage for how to automate the process.
https://redd.it/evcpwv
@r_devops
Medium
Modeling Distributed Systems: Conceptual Background and Metrics
Metrics as distributions: ongoing series in using ML to model failures in large distributed systems.
Terraform + Ansible/Chef/Puppet/Saltstack
So I am alone in deciding and implementing our IaC techstack and my company.
Terraform is what I've used for about a year, but now I need to figure out what Configuration tool that meshes best with Terraform.
Do you guys have any experience with any of them? Got any cool links for best practices?
Cheers!
https://redd.it/evag2b
@r_devops
So I am alone in deciding and implementing our IaC techstack and my company.
Terraform is what I've used for about a year, but now I need to figure out what Configuration tool that meshes best with Terraform.
Do you guys have any experience with any of them? Got any cool links for best practices?
Cheers!
https://redd.it/evag2b
@r_devops
reddit
Terraform + Ansible/Chef/Puppet/Saltstack
So I am alone in deciding and implementing our IaC techstack and my company. Terraform is what I've used for about a year, but now I need to...
How to remove brackets and apostrophes in ansible?
the second one i have use join but when i add the excel i get pound sign. I just the output to be /root, /home/mydocument, \]
\[ ' /root, '/home/my document/,....\]
\- name: mount
debug:
msg:
\- "{{ ansible\_mounts | json\_query('\[\*\].mount') | regex\_replace(u', '') }}"
\- "{{ ansible\_mounts | json\_query('\[\*\].size\_total') | join(',') }}"
https://redd.it/evb3r0
@r_devops
the second one i have use join but when i add the excel i get pound sign. I just the output to be /root, /home/mydocument, \]
\[ ' /root, '/home/my document/,....\]
\- name: mount
debug:
msg:
\- "{{ ansible\_mounts | json\_query('\[\*\].mount') | regex\_replace(u', '') }}"
\- "{{ ansible\_mounts | json\_query('\[\*\].size\_total') | join(',') }}"
https://redd.it/evb3r0
@r_devops
reddit
How to remove brackets and apostrophes in ansible?
the second one i have use join but when i add the excel i get pound sign. I just the output to be /root, /home/mydocument, \] \[ ' /root,...
Backup and Quick Deploy Solution
What are the best options for creating a ready-to-go copy of a VM with an associated volume that I can deploy within an hour and avoid burning up costs while we are not using the applications deployed on it?
I currently have required uptime in order to run Tanium and other security scans on a daily basis. However, these applications are no longer being used and will not be needed for several months, so I'd like to potentially remove them from our AWS account apart from a backup in order to not incur costs and avoid a lack of vulnerability scans due to the VM being shut-off.
**My potential solution:**
1. Create an AMI from the VM
2. Create a final copy of the Volume attached to it
3. Shut Down and Destroy VM (Will this remove the AMI?)
https://redd.it/evavyg
@r_devops
What are the best options for creating a ready-to-go copy of a VM with an associated volume that I can deploy within an hour and avoid burning up costs while we are not using the applications deployed on it?
I currently have required uptime in order to run Tanium and other security scans on a daily basis. However, these applications are no longer being used and will not be needed for several months, so I'd like to potentially remove them from our AWS account apart from a backup in order to not incur costs and avoid a lack of vulnerability scans due to the VM being shut-off.
**My potential solution:**
1. Create an AMI from the VM
2. Create a final copy of the Volume attached to it
3. Shut Down and Destroy VM (Will this remove the AMI?)
https://redd.it/evavyg
@r_devops
reddit
Backup and Quick Deploy Solution
What are the best options for creating a ready-to-go copy of a VM with an associated volume that I can deploy within an hour and avoid burning up...