Giter Club home page Giter Club logo

ec2tagfacts's People

Contributors

andriyfedorov-pexa avatar biandrews avatar bleiva avatar bryanandrews avatar davividal avatar roiravhon avatar tedivm avatar tooooots avatar ultracoool avatar zipkid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ec2tagfacts's Issues

Issue with aws ec2 describe-tags command

Puppet fails with timeout while running following command even though command itself works if I run it on terminal.

aws ec2 describe-tags --filters "Name=resource-id,Values=XXXXXXX" --region ap-southeast-2 --output json

If I take this bit off "--region ap-southeast-2" it works fine.

I'm forking off this module to remove this bit as I don't have enough time to troubleshoot. Would you mind making this region param optional or ability to turn it off?

Upgrade dependencies stdlib?

Hello wondering if we can get the stdlib dependencies upgraded to something more recent? 7.1.0 is out and this is bound by 5.0.0

Error: Could not install module 'bryana-ec2tagfacts' (v0.3.0)
The requested version cannot satisfy one or more of the following installed modules:
puppetlabs-stdlib, installed: 6.6.0, expected: >= 3.2.0 < 5.0.0

Windows Server Support

Hi,

Just wondering if there are any plans to add support for Windows as this module would be pretty handy.

Thanks
Gareth

facts not showing with the facter command on the node

Hi.

Not necessarily a bug (I don't think), but more of a question/curiosity.

I noticed that running the "facter" command at the command-line on the node does not list any of the facts created by this module. They seem to only be available to the puppet master. Doing a "puppet facts find " on the puppet master does show the facts created by this module.

Do you know if it's possible to have the facts created by this to be available to the facter command when it's run on the node?

Missing "rescue" clause in ec2_tag_facts.rb

When first including the module, puppet copies ec2_tag_facts.rb into facter dir, before any configuration from the class getting enforced.

That's cause puppet run to fail on missing awscli command, or missing credentials if it's already installed.

I would suggest wrapping the awscli issue command and the json parsing with "begin rescue end" clauses which cause the script not to fail, and let puppet continue its run so it can configure everything else.

I have fixed that locally and it has managed to configure awscli after that.

Amazon Linux package

Package ruby-json-1.4.6-1.el6.x86_64 is obsoleted by rubygem18-json-1.8.2-1.39.amzn1.x86_64 which is already installed
Nothing to do

Not needed on Amazon linux, default install works

Getting error on ec2 instances due to AWS IMDSv2

I have Aws instance metadata data service v2 enabled and get errors from the aws cli where it expects region to be populated.

It appears that the IMDSv1 call in ec2_tag_facts.rb isn't able to get to the metadata.

Please use AWS Ruby SDK instead of the AWS CLI

I wonder about the usage of the AWS CLI here. This is all Ruby code, so why not use the Ruby SDK instead of pulling in a Python application? This would also handle the retries in case of rate limits (see commit 57b3cd6) automatically and with exponential backoff, if the client was initialized accordingly, for example

ec2       = Aws::EC2::Client.new(
  credentials: Aws::SharedCredentials.new(profile_name: some_profile),
  region:      region,
  retry_limit: 20
)

I didn't run into API rate limits anymore since I added the retry_limit: 20 part some years ago...

Documentation error

The readme states:

Once launched an EC2 instance can't be added to a role or removed from a role but the contents of the roles' policies can be changed at any time.

This is wrong, I just did exactly this (added an IAM role to a running instance).

I think we should fork and improve

I make extensive use of this module, and it's too bad that @BIAndrews is no longer maintaining it. Has anyone significantly improved on this already, and can we maybe create a forked forge module out of it? The module has been downloaded 32M times, and the latest version has been downloaded 1.1M times at https://forge.puppet.com/modules/bryana/ec2tagfacts. I guess there are enough consumers...

Wish list would be:

  • Update dependencies to latest available versions
  • Use IMDSv2 by default
  • Not sure about #25

I'm interested in your thoughts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.