-
Notifications
You must be signed in to change notification settings - Fork 14
Initialize #1
Initialize #1
Conversation
LICENSE
Outdated
same "printed page" as the copyright notice for easier | ||
identification within third-party archives. | ||
|
||
Copyright 2017-2018 Cloud Posse, LLC |
There was a problem hiding this comment.
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}" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace :
with /
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...for all targets
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/system/chamber/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link chamber to https://github.com/segmentio/chamber
README.md
Outdated
source = "git::https://github.com/cloudposse/terraform-aws-iam-chamber-user.git?ref=master" | ||
namespace = "cp" | ||
stage = "circleci" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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/ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 = "" |
There was a problem hiding this comment.
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}" |
There was a problem hiding this comment.
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 = ["*"] |
There was a problem hiding this comment.
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 = [ |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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" {} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/cloudposse/terraform-aws-key-pair/blob/master/variables.tf#L1-L32
They are all well documented
variables.tf
Outdated
default = [] | ||
} | ||
|
||
variable "ssm_actions" { |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
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.