Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Initialize #1

Merged
merged 12 commits into from
Apr 21, 2018
Merged

Initialize #1

merged 12 commits into from
Apr 21, 2018

Conversation

sarkis
Copy link
Contributor

@sarkis sarkis commented Apr 20, 2018

what

Terraform module for creating an IAM user and access id/secret with access to SSM+KMS secrets.

why

Make it easier for SaaS CI/CD solutions to access secrets from SSM+KMS.

@sarkis sarkis changed the title initial commit Initialize Apr 20, 2018
LICENSE Outdated
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2017-2018 Cloud Posse, LLC

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix years

variables.tf Outdated

variable "policy" {
description = "User policy in json format"
default = "${data.aws_iam_policy_document.default.json}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interpolations are not valid as defaults

.travis.yml Outdated
- make init

script:
- make terraform:install

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace : with /

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...for all targets

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

README.md Outdated
# terraform-aws-iam-chamber-user [![Build Status](https://travis-ci.org/cloudposse/terraform-aws-iam-chamber-user.svg)](https://travis-ci.org/cloudposse/terraform-aws-iam-chamber-user)

Terraform Module to provision a basic IAM system user with access to SSM parameters, suitable for CI/CD Systems

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/system/chamber/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README.md Outdated
source = "git::https://github.com/cloudposse/terraform-aws-iam-chamber-user.git?ref=master"
namespace = "cp"
stage = "circleci"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's rename to staging

README.md Outdated
source = "git::https://github.com/cloudposse/terraform-aws-iam-chamber-user.git?ref=master"
namespace = "cp"
stage = "circleci"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets rename to staging

[erik_web]: https://github.com/osterman/
[andriy_img]: https://avatars0.githubusercontent.com/u/7356997?v=4&u=ed9ce1c9151d552d985bdf5546772e14ef7ab617&s=144
[andriy_web]: https://github.com/aknysh/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add yourself

README.md Outdated
## Usage

### Simple usage

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need 2 usages for this module. Only a single one.

README.md Outdated
stage = "circleci"
name = "secrets"
kms_key_arn = ""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a mock kms key

main.tf Outdated
name = "${var.name}"
enabled = "${var.enabled}"
namespace = "${var.namespace}"
stage = "${var.stage}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing attributes

main.tf Outdated
"ssm:GetParameters",
]

resources = ["*"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this to a variable ssm_resources with a default value of ["*"]

main.tf Outdated

data "aws_iam_policy_document" "default" {
statement {
actions = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to a variable named ssm_actions with a default value of what you have here.

README.md Outdated
namespace = "cp"
stage = "staging"
name = "chamber"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will definitely need the kms_key_arn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add mock kms_key_arn

README.md Outdated
| `path` | `/` | Path in which to create the user | No |
| `enabled` | `true` | Set to `false` to prevent the module from creating any resources | No |
| `kms_key_arn` | `` | KMS key_arn used if Secure Strings are stored in Parameter Store to decrypt secrets. | No |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be required

variables.tf Outdated
@@ -0,0 +1,50 @@
variable "name" {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same variables we have in all of our other modules.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variables.tf Outdated
default = []
}

variable "ssm_actions" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add description to all variables.

README.md Outdated
stage = "staging"
name = "chamber"
kms_key_arn = "arn:aws:kms:region:account-id:key/CMK"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a realistic arn. It's hard to know what is a placeholder vs what is replaced.

@osterman osterman requested a review from aknysh April 21, 2018 00:21
@sarkis sarkis merged commit 75c5a6a into master Apr 21, 2018
@aknysh aknysh deleted the init branch April 22, 2018 23:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants