Sign inSign up

ventx/go-aws-parameter-k8s

By ventx

•Updated about 6 years ago

Image
0

511

ventx/go-aws-parameter-k8s repository overview

⁠go-aws-parameter-k8s

owner pre-commit docker-hub docker-size

GoLang tool to get and create secret: AWS Systems Manager Parameter Store <--> Kubernetes

⚠️ WARNING: Currently this project is working only for sharing the consul-federation secret (hardcoded values, see TODOs)

⁠Development

Prerequisites:

Start your local kind K8s cluster in Docker:

make kind

To deploy to kind cluster:

  • set VERSION in Makefile

make build-dev && make deploy

⁠Arguments

Command-Line arguments

Should take precedence over environment variables

ArgumentDescriptionDefault
paramPrefixPrefix path for AWS Parameter/consul/
paramDescriptionAWS Parameter descriptionKubernetes Consul Federation
awsRegionAWS Regioneu-central-1
secretNameName of Kubernetes secretconsul-federation
namespaceName of Kubernetes namespaceconsul

⁠IAM Policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "ssm:DescribeParameters",
                "ssm:GetParameter",
                "ssm:GetParameters",
                "ssm:GetParametersByPath",
                "ssm:PutParameter"
            ],
            "Resource": "*"
        }
    ]
}

⁠TODOs

  • Remove hardcoded values for Kubernetes Secret keys
  • add environment variables handling
  • Error handling for AWS SSM Parameter Store
  • Error handling for K8s secret

⁠Environment Variables

NameDescriptionExample Value

Tag summary

Content type

Image

Digest

Size

39.1 MB

Last updated

about 6 years ago

docker pull ventx/go-aws-parameter-k8s:0.1.3