Calling OpenAI API Service using Python
https://medium.com/techbeatly/calling-openai-api-service-using-python-9e1d51416e7a?sk=20568c9675cea21735d6b90ee0ee2d13
https://redd.it/12hnvfw
@r_devops
https://medium.com/techbeatly/calling-openai-api-service-using-python-9e1d51416e7a?sk=20568c9675cea21735d6b90ee0ee2d13
https://redd.it/12hnvfw
@r_devops
Medium
Calling OpenAI API Service using Python
In this short article, I will demonstrate with a sample code how we can interact with OpenAI API Service using python library. Sending the…
Need some help with terraformer
Hey All,
I am very new to this terraform world. I'm working on importing previously built hand-built AWS infrastructure into TerraForm.
I was using the terraform import function, however, it was time-consuming and difficult to use. I stumbled upon Terraformer today which is supposed to automate the task for you. I keep getting the following error message when performing the import. I was hoping someone with more experience than me could help me out.
​
Thanks!
​
​
Andrews-iMac:Import acaplice$ terraformer import aws -r vpc --regions=us-east-1 -O hcl --profile=ProfileName
2023/04/10 16:44:45 aws importing region us-east-1
2023/04/10 16:44:45 aws importing... vpc
2023/04/10 16:44:50 aws error initializing resources in service vpc, err: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "https://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: host is down
https://redd.it/12hvsjl
@r_devops
Hey All,
I am very new to this terraform world. I'm working on importing previously built hand-built AWS infrastructure into TerraForm.
I was using the terraform import function, however, it was time-consuming and difficult to use. I stumbled upon Terraformer today which is supposed to automate the task for you. I keep getting the following error message when performing the import. I was hoping someone with more experience than me could help me out.
​
Thanks!
​
​
Andrews-iMac:Import acaplice$ terraformer import aws -r vpc --regions=us-east-1 -O hcl --profile=ProfileName
2023/04/10 16:44:45 aws importing region us-east-1
2023/04/10 16:44:45 aws importing... vpc
2023/04/10 16:44:50 aws error initializing resources in service vpc, err: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "https://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: host is down
https://redd.it/12hvsjl
@r_devops
Reddit
r/devops on Reddit: Need some help with terraformer
Posted by u/brew87 - No votes and 1 comment
Tools for checking your code?
What code tools do you use for verifying code you wrote,? Sonarqube ?
https://redd.it/12hmmjt
@r_devops
What code tools do you use for verifying code you wrote,? Sonarqube ?
https://redd.it/12hmmjt
@r_devops
Reddit
r/devops on Reddit: Tools for checking your code?
Posted by u/Titanguru7 - No votes and 1 comment
Building in public: Cloud pricing calculators are super annoying - so here is one based on natural language
For now I've only implemented AWS services, hence it's in alpha. But I'd be curious to hear what the most common pricing prompts are for you - and whether you mostly need estimates (only set the most important parameters on calculator.aws) or exact prices.
​
Also, how often do you look up cloud prices? Which ones do you look up? Let me know in the comments.
​
https://go.kubiya.ai/cloud-pricing (a video demo)
https://redd.it/12hz7wy
@r_devops
For now I've only implemented AWS services, hence it's in alpha. But I'd be curious to hear what the most common pricing prompts are for you - and whether you mostly need estimates (only set the most important parameters on calculator.aws) or exact prices.
​
Also, how often do you look up cloud prices? Which ones do you look up? Let me know in the comments.
​
https://go.kubiya.ai/cloud-pricing (a video demo)
https://redd.it/12hz7wy
@r_devops
calculator.aws
AWS Pricing Calculator
AWS Pricing Calculator lets you explore AWS services, and create an estimate for the cost of your use cases on AWS.
Platform Engineering for Hashicorp Vault?
We're setting up HCP Vault (the SaaS) to be a platform for other dev groups to use for their secrets. My team will be managing it, so I'm looking to templatize/standardize as much as possible.
I've read over this guide Onboarding Applications to Vault Using Terraform: A Practical Guide - https://www.hashicorp.com/blog/onboarding-applications-to-vault-using-terraform-a-practical-guide \- which is a very baby-steps way of structuring the terraform. Does anyone know of any guides with more complex terraform? I'm looking for other ideas for how different teams manage this, and not seeing a lot in public repos, maybe I'm missing it, or maybe anyone doing this work is keeping it private.
https://redd.it/12i17s4
@r_devops
We're setting up HCP Vault (the SaaS) to be a platform for other dev groups to use for their secrets. My team will be managing it, so I'm looking to templatize/standardize as much as possible.
I've read over this guide Onboarding Applications to Vault Using Terraform: A Practical Guide - https://www.hashicorp.com/blog/onboarding-applications-to-vault-using-terraform-a-practical-guide \- which is a very baby-steps way of structuring the terraform. Does anyone know of any guides with more complex terraform? I'm looking for other ideas for how different teams manage this, and not seeing a lot in public repos, maybe I'm missing it, or maybe anyone doing this work is keeping it private.
https://redd.it/12i17s4
@r_devops
HashiCorp
Onboarding Applications to Vault Using Terraform: A Practical Guide
Learn how to build an automated HashiCorp Vault onboarding system with Terraform using sensible naming standards, ACL policy templates, pre-created application entities, and workflows driven by VCS and CI/CD.
Is it reasonable for a company to give you academic/behavior assessments before you’ve even gotten a phone screener?
I’ve been looking for jobs lately and have come across a few instances where a company wants me to take a Wonderlic type logic test or a 200 question personality assessment as part of the standard application. Sometimes multiple. And they’ll quote an expected 1-2 hours of time needed to complete them. Is this now normal? I personally think it’s ridiculous to ask for 1-2 hours of someone’s time just to submit a resume, especially because there’s no guarantee after spending that time I’ll even get the 10 minute phone screener. If I’m already in the running for the position and we’ve at least talked before and decided to continue, I’d be much more willing, but having to do them just to get a resume on a desk seems like an unreasonable ask.
Im asking because I’m not sure if I’m out of touch for how applications go these days or if this is a bit much for just an application
https://redd.it/12hmhuf
@r_devops
I’ve been looking for jobs lately and have come across a few instances where a company wants me to take a Wonderlic type logic test or a 200 question personality assessment as part of the standard application. Sometimes multiple. And they’ll quote an expected 1-2 hours of time needed to complete them. Is this now normal? I personally think it’s ridiculous to ask for 1-2 hours of someone’s time just to submit a resume, especially because there’s no guarantee after spending that time I’ll even get the 10 minute phone screener. If I’m already in the running for the position and we’ve at least talked before and decided to continue, I’d be much more willing, but having to do them just to get a resume on a desk seems like an unreasonable ask.
Im asking because I’m not sure if I’m out of touch for how applications go these days or if this is a bit much for just an application
https://redd.it/12hmhuf
@r_devops
Reddit
r/devops on Reddit: Is it reasonable for a company to give you academic/behavior assessments before you’ve even gotten a phone…
Posted by u/AlPastorGalore - 1 vote and 4 comments
GitHub Secrets: Is it safe to store an environment secret to a file from within a GitHub Action?
In other words, is it safe to have something like this in a .yml file:
# Add API key
- name: Add API key secret to file
env:
API_KEY_SECRET: ${{ secrets.API_KEY_SECRET }}
run: echo "$API_KEY_SECRET" > ~/work/MyProject/MyProject/secrets/api_key.txt
To clarify, the secret is not pushed to the repository, initially it only exists as an environment secret. I'm not sure if the .txt file created above ends up somewhere unsecure. The reason I ask is because if this is secure, then I can have a convenient location for programs to access secrets stored in files both on my machine (either .gitignore or outside the local repo) and when running on the server, without storing secrets in the repository.
https://redd.it/12i56ye
@r_devops
In other words, is it safe to have something like this in a .yml file:
# Add API key
- name: Add API key secret to file
env:
API_KEY_SECRET: ${{ secrets.API_KEY_SECRET }}
run: echo "$API_KEY_SECRET" > ~/work/MyProject/MyProject/secrets/api_key.txt
To clarify, the secret is not pushed to the repository, initially it only exists as an environment secret. I'm not sure if the .txt file created above ends up somewhere unsecure. The reason I ask is because if this is secure, then I can have a convenient location for programs to access secrets stored in files both on my machine (either .gitignore or outside the local repo) and when running on the server, without storing secrets in the repository.
https://redd.it/12i56ye
@r_devops
Reddit
r/devops on Reddit: GitHub Secrets: Is it safe to store an environment secret to a file from within a GitHub Action?
Posted by u/brobot206 - No votes and no comments
DevOps/DevSecOps hero to zero
Hi guys,can you share your thoughts and a roadmap for being devops/devsecops, i am currently working as SOC Analyst and learning pentesting,i want to add DevOps to my skill and become DevSecOps.
Maybe in future i want to change my job to DevOps
Last question,what are the chances find remote work as a DevOps
https://redd.it/12i9csf
@r_devops
Hi guys,can you share your thoughts and a roadmap for being devops/devsecops, i am currently working as SOC Analyst and learning pentesting,i want to add DevOps to my skill and become DevSecOps.
Maybe in future i want to change my job to DevOps
Last question,what are the chances find remote work as a DevOps
https://redd.it/12i9csf
@r_devops
Reddit
r/devops on Reddit: DevOps/DevSecOps hero to zero
Posted by u/XaladelnikUstasi - No votes and 3 comments
How much building a big following on the dev community can help someone get better job opportunities?
Im not sure if this is the best place for asking it but it’s something that makes me really curious! Especially concerning frontend professionals, since i see so many people apparently doing a big effort towards getting a bigger following on the community while in other hand a lot of other devs apparently aren’t active on social medias at all
https://redd.it/12ic2et
@r_devops
Im not sure if this is the best place for asking it but it’s something that makes me really curious! Especially concerning frontend professionals, since i see so many people apparently doing a big effort towards getting a bigger following on the community while in other hand a lot of other devs apparently aren’t active on social medias at all
https://redd.it/12ic2et
@r_devops
Reddit
r/devops on Reddit: How much building a big following on the dev community can help someone get better job opportunities?
Posted by u/4cidy - No votes and no comments
Open Policy Agent
I recently came across OPA. Currently exploring courses from Styra. I wanted to know if learning it is worth for a DevOps engineer? Is it in demand? Does this have any future In DevOps market?
https://redd.it/12icbhu
@r_devops
I recently came across OPA. Currently exploring courses from Styra. I wanted to know if learning it is worth for a DevOps engineer? Is it in demand? Does this have any future In DevOps market?
https://redd.it/12icbhu
@r_devops
Reddit
r/devops on Reddit: Open Policy Agent
Posted by u/kk24680 - No votes and no comments
How much would you earn as a Senior Consultant in DevOps in AWS Poland?
Can anyone tell me the salary range of a Sr DevOps Consultant in Poland?
https://redd.it/12idrgi
@r_devops
Can anyone tell me the salary range of a Sr DevOps Consultant in Poland?
https://redd.it/12idrgi
@r_devops
Reddit
r/devops on Reddit: How much would you earn as a Senior Consultant in DevOps in AWS Poland?
Posted by u/Immediate_Local_3791 - No votes and no comments
8 Talks That You Can't Miss On KubeCon EU 2023!
https://youtu.be/eYM5IIQzK3k
https://redd.it/12ifj6q
@r_devops
https://youtu.be/eYM5IIQzK3k
https://redd.it/12ifj6q
@r_devops
YouTube
8 Talks That You Can't Miss On KubeCon EU 2023!
Talk 1:
Tutorial: Measure Twice, Cut Once: Dive Into Network Foundations the Right Way! - Marino Wijay & Jason Skrzypek, Solo.io - https://tinyurl.com/muy2skr2
Talk 2:
The State of Backstage in 2023 - Ben Lambert & Patrik Oldsberg, Spotify - https://ti…
Tutorial: Measure Twice, Cut Once: Dive Into Network Foundations the Right Way! - Marino Wijay & Jason Skrzypek, Solo.io - https://tinyurl.com/muy2skr2
Talk 2:
The State of Backstage in 2023 - Ben Lambert & Patrik Oldsberg, Spotify - https://ti…
Is Udemy certificates worth anything?
I know usually the answer to this is no. I'd appreciate it if you could hear my situation first, I am a Senior Sysadmin with 7 years of experience. I am looking to switch to DevOps. I have a little bit of DevOps exposure. But I do not have any DevOps experience or qualifications.
I just completed a 50 hours DevOps course on Udemy. It's pretty thorough and hands-on. Should I include it in my resume? I know it's just a certificate of completion. But isn't something worth nothing since I have no other DevOps certifications yet? (such as AWS or Kubernetes - which I am studying for but haven't completed yet).
https://redd.it/12ifdal
@r_devops
I know usually the answer to this is no. I'd appreciate it if you could hear my situation first, I am a Senior Sysadmin with 7 years of experience. I am looking to switch to DevOps. I have a little bit of DevOps exposure. But I do not have any DevOps experience or qualifications.
I just completed a 50 hours DevOps course on Udemy. It's pretty thorough and hands-on. Should I include it in my resume? I know it's just a certificate of completion. But isn't something worth nothing since I have no other DevOps certifications yet? (such as AWS or Kubernetes - which I am studying for but haven't completed yet).
https://redd.it/12ifdal
@r_devops
Reddit
r/devops on Reddit: Is Udemy certificates worth anything?
Posted by u/kavee9 - No votes and 4 comments
What would you consider a high pressure DevOps role?
For frame of reference:
Working 45-50 hours per week.
No breaks, expected to work through lunch.
On call rotation which is weekly where you may receive many overnight calls.
Shift work, needing to have early AM start or evening hours. No overnight hours yet.
Expected response times to complaints via chat or email is minutes. Emails or customer requests should be answered within the hour.
Is this normal for the industry or higher than average levels of demand/stress?
https://redd.it/12iki4b
@r_devops
For frame of reference:
Working 45-50 hours per week.
No breaks, expected to work through lunch.
On call rotation which is weekly where you may receive many overnight calls.
Shift work, needing to have early AM start or evening hours. No overnight hours yet.
Expected response times to complaints via chat or email is minutes. Emails or customer requests should be answered within the hour.
Is this normal for the industry or higher than average levels of demand/stress?
https://redd.it/12iki4b
@r_devops
Reddit
r/devops on Reddit: What would you consider a high pressure DevOps role?
Posted by u/petulanthedgehog - No votes and 10 comments
KubeCon -- Rooftop Happy Hour
Hello everyone,
As KubeCon approaches next week I’d like to invite all attendees to join us for a lovely evening in Amsterdam. The FluxNinja team is hosting a happy hour event on Tuesday, April 18th.
Location & Time: Canvas, Amsterdam at 6 pm
You're welcome to come, enjoy drinks, and capture Amsterdam from a rooftop bar!
Here is the link for signing up for the waitlist: https://partiful.com/e/Af6VA6NzXIPxpv2ku6vk
https://redd.it/12ilykk
@r_devops
Hello everyone,
As KubeCon approaches next week I’d like to invite all attendees to join us for a lovely evening in Amsterdam. The FluxNinja team is hosting a happy hour event on Tuesday, April 18th.
Location & Time: Canvas, Amsterdam at 6 pm
You're welcome to come, enjoy drinks, and capture Amsterdam from a rooftop bar!
Here is the link for signing up for the waitlist: https://partiful.com/e/Af6VA6NzXIPxpv2ku6vk
https://redd.it/12ilykk
@r_devops
Partiful
RSVP to The FluxNinja Happy Hour @ KubeCon Amsterdam | Partiful
The FluxNinja team is excited to see you in person in Amsterdam! Please join us at Canvas Lounge for a night of fun discussions on the latest developments in dev tools and infrastructure with other like-minded leaders. Appetizers and drinks will be served.…
Learning path
I’ve been a data scientist for about 2 years now and only worked mostly with raw data and modeling, but now at my current role I’m being asked to run also the deployment part with techs like docker, Jenkins, Argo etc and recently I’ve been asked to learn about Prometheus and Grafana.
I didn’t have much time to even dig deep into docker and I feel like I can’t even gasp the basic knowledge of what each tech piece does, its purpose and in which part of the deployment tray it fits.
So, I wanted to know if you guys could start over how would you gasp the devops environment and it’d be pure gold if you could add a free courses as a recommendation
https://redd.it/12iqsqy
@r_devops
I’ve been a data scientist for about 2 years now and only worked mostly with raw data and modeling, but now at my current role I’m being asked to run also the deployment part with techs like docker, Jenkins, Argo etc and recently I’ve been asked to learn about Prometheus and Grafana.
I didn’t have much time to even dig deep into docker and I feel like I can’t even gasp the basic knowledge of what each tech piece does, its purpose and in which part of the deployment tray it fits.
So, I wanted to know if you guys could start over how would you gasp the devops environment and it’d be pure gold if you could add a free courses as a recommendation
https://redd.it/12iqsqy
@r_devops
Reddit
r/devops on Reddit: Learning path
Posted by u/OkYak2915 - No votes and no comments
Needing to work with developers to fix something feels like asking them to do sidequests.
How do you guys handle tickets that require time from developers? I have a couple of Jira tickets that require either knowledge from specific developers to help fix something they created or require them to modify something in their code.
The problem I'm facing is that I need to chase them down to get them to help me and there's really no consequence if they decide not to. Boss doesn't seem to think this is an issue since they have their own tickets that they're working on, but my Blocked tickets are piling up and they have my name attached to them.
https://redd.it/12isaka
@r_devops
How do you guys handle tickets that require time from developers? I have a couple of Jira tickets that require either knowledge from specific developers to help fix something they created or require them to modify something in their code.
The problem I'm facing is that I need to chase them down to get them to help me and there's really no consequence if they decide not to. Boss doesn't seem to think this is an issue since they have their own tickets that they're working on, but my Blocked tickets are piling up and they have my name attached to them.
https://redd.it/12isaka
@r_devops
Reddit
r/devops on Reddit: Needing to work with developers to fix something feels like asking them to do sidequests.
Posted by u/Vanthian - No votes and 2 comments
bash/shell scripting
when and why was last time you used bash or shell scripting ?
https://redd.it/12iptwr
@r_devops
when and why was last time you used bash or shell scripting ?
https://redd.it/12iptwr
@r_devops
Reddit
r/devops on Reddit: bash/shell scripting
Posted by u/lev-13 - 5 votes and 18 comments
Database user management?
Are there any tools that help automate the creation of users and granting of privileges on databases/tables?
I'd love to have a web-based UI that users can access via SSO, where they can request creation of users or granting of specific privileges. Admins would be able to approve these requests with a click and the tool in question would run the CREATE USER or GRANT queries, as well as keeping an auditable log of said operations.
Does a tool like this already exist?
If not, is there a reason why it shouldn't? I.e. would this be an anti-pattern for some reason?
For context, we build a lot of microservices, and create service-specific users and grant the privs needed for that service. However, this is all manual currently which leads to a lot of grunt work for our devops team, and is hard to audit (currently devops engineers post the queries they ran as a comment in the JIRA ticket requesting the db user/grants).
TIA!
https://redd.it/12is0o1
@r_devops
Are there any tools that help automate the creation of users and granting of privileges on databases/tables?
I'd love to have a web-based UI that users can access via SSO, where they can request creation of users or granting of specific privileges. Admins would be able to approve these requests with a click and the tool in question would run the CREATE USER or GRANT queries, as well as keeping an auditable log of said operations.
Does a tool like this already exist?
If not, is there a reason why it shouldn't? I.e. would this be an anti-pattern for some reason?
For context, we build a lot of microservices, and create service-specific users and grant the privs needed for that service. However, this is all manual currently which leads to a lot of grunt work for our devops team, and is hard to audit (currently devops engineers post the queries they ran as a comment in the JIRA ticket requesting the db user/grants).
TIA!
https://redd.it/12is0o1
@r_devops
Reddit
r/devops on Reddit: Database user management?
Posted by u/dahlesreb - 4 votes and 4 comments
Network Troubleshooting Made Easy with ChatGPT
How ChatGPT transforms network automation through seamless pyATS integration, analyzing network test failures, and providing customized explanations for users of varying expertise. https://youtu.be/W7KtYF0gDJU
https://redd.it/12ivc6p
@r_devops
How ChatGPT transforms network automation through seamless pyATS integration, analyzing network test failures, and providing customized explanations for users of varying expertise. https://youtu.be/W7KtYF0gDJU
https://redd.it/12ivc6p
@r_devops
YouTube
Network Troubleshooting Made Easy with ChatGPT | Snack Minute Ep. 96
Explore ChatGPT's role in Network Troubleshooting in Snack Minute Ep. 96. Learn how ChatGPT transforms network automation through seamless pyATS integration, analyzing network test failures, and providing customized explanations for users of varying expertise.…
CI/CD server script question
When you are writing an inline script on a CI/CD server like bamboo, how does it know what location in the server to start the commands from?
For instance, in one of our scripts, the first command is cp. Which directory is this command being run from?
https://redd.it/12j1b6a
@r_devops
When you are writing an inline script on a CI/CD server like bamboo, how does it know what location in the server to start the commands from?
For instance, in one of our scripts, the first command is cp. Which directory is this command being run from?
https://redd.it/12j1b6a
@r_devops
Reddit
r/devops on Reddit: CI/CD server script question
Posted by u/DevOps_Noob1 - No votes and 1 comment