Skip to content
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 new modules #1247

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add new modules #1247

wants to merge 2 commits into from

Conversation

mccanney
Copy link

Add the following modules:

  • CloudWatch
  • EKS
  • RDS
  • Resource Groups Tagging API

Fix minor typos

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Add the following modules:
- CloudWatch
- EKS
- RDS
- Resource Groups Tagging API

Fix minor typos
@mccanney mccanney requested a review from a team as a code owner May 22, 2024 12:16
@Vlatombe
Copy link
Member

Thanks! This allowed me to spot a typo in the instructions, so added it to your PR.

Do you have plans to publish a plugin leveraging these APIs?

@mccanney
Copy link
Author

Ah, I see the issue! I should have looked more closely. 😀

My employer has some custom Groovy classes reaching out to AWS, it's fairly niche and specific to our requirements so it's unlikely to be of any use to anyone else.

@Vlatombe
Copy link
Member

some custom Groovy classes

Why do you run these in the Jenkins runtime? It is not recommended to run anything other than pipeline logic as part of the Jenkinsfile. Prefer using a separate (groovy) process running in the agent instead.

@davidmccanney
Copy link

Doesn't anything inside a script tag only run on the controller though? I'd definitely be interested to see some docs if there's a better way for us to do things!

@Vlatombe
Copy link
Member

See https://www.jenkins.io/doc/book/pipeline/pipeline-best-practices/#making-sure-to-use-groovy-code-in-pipelines-as-glue

Typically in your case, you could just use standalone .groovy scripts, grabbing necessary aws modules as dependencies.
Then in your pipeline, have simply

sh 'groovy myscript.groovy'

to call your logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants