Forge Home

hiera_ssm_paramstore

Hiera 5 backend to query data on AWS System Manager Parameter Store

26,697 downloads

9,867 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
  • 0.3.0
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.1
  • 0.1.0
released May 15th 2018
This version is compatible with:
  • Puppet Enterprise 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.4.x
  • Puppet >= 4.9.0
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'luizvasconceloss-hiera_ssm_paramstore', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add luizvasconceloss-hiera_ssm_paramstore
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install luizvasconceloss-hiera_ssm_paramstore --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

luizvasconceloss/hiera_ssm_paramstore — version 0.1.1 May 15th 2018

Build Status

hiera_ssm_paramstore : AWS Systems Manager Parameter Store backend for Hiera 5

Description

This is a backend function for Hiera 5 that allows to lookup keys (string and securestring) on AWS Systems Manager Parameter Store. The intent is to provide a more friendly way to manage keys on AWS.

Compatibility

  • It'ss only compatible with Hiera 5, present on Puppet 4.9+

Requirements

The aws-sdk-ssm gem must be installed and loadable from Puppet

# /opt/puppetlabs/puppet/bin/gem install aws-sdk-ssm
# puppetserver gem install aws-sdk-ssm

The server needs access to describe and get keys on AWS. You can use an instance role or configure authentication through aws-cli. The policy should look like:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1526212635512",
            "Action": [
                "ssm:DescribeParameters",
                "ssm:GetParameters"
            ],
            "Effect": "Allow",
            "Resource": [
                "arn:aws:ssm:us-east-1:*"
            ]
        }
    ]
}

Installation

Clone this repository into your modules path.

# puppet module install luizvasconceloss-hiera_ssm_paramstore

Configuration

See The official Puppet documentation for more details on configuring Hiera 5.

The following is an example Hiera 5 hiera.yaml configuration:

---

version: 5

hierarchy:
  - name: "AWS Parameter Store"
    lookup_key: hiera_ssm_paramstore
    uris:
      - /
    options:
      region: us-east-1

Lookup options

region: : Specify what region should be used to query the keys/values, if not present will try to use a region configured on the server.

Limitation

AWS impose rate limit for API call, depending on the number of keys and nodes you can quickly reach those limits.

Author