Skip to content

Commit f21b501

Browse files
authored
Merge pull request #14 from mineiros-io/mariux/prepare-release
Prepare minor release
2 parents 65f9625 + daffb81 commit f21b501

File tree

9 files changed

+67
-24
lines changed

9 files changed

+67
-24
lines changed

CHANGELOG.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [0.1.0] - 2020-07-08
10+
### Added
11+
- Add CHANGELOG.md
12+
13+
### Changed
14+
- Align documentation to latest structure and style
15+
16+
## [0.0.4] - 2020-06-18
17+
### Added
18+
- Add a unit tests
19+
20+
### Changed
21+
- Align repository to latest structure and style
22+
23+
## [0.0.3] - 2020-06-18
24+
### Fixed
25+
- Fix creation of empty group resources
26+
27+
## [0.0.2] - 2020-05-25
28+
### Added
29+
- Add support for adding multiple users at once
30+
31+
## [0.0.1] - 2020-05-25
32+
### Added
33+
- Add IAM user support
34+
- Add IAM user inline policy support
35+
- Add custom or managed policies support
36+
- Add support to attach the user to a list of groups by group name
37+
38+
<!-- markdown-link-check-disable -->
39+
[Unreleased]: https://github.com/mineiros-io/terraform-aws-iam-user/compare/v0.1.0...HEAD
40+
[0.1.0]: https://github.com/mineiros-io/terraform-aws-iam-user/compare/v0.0.4...v0.1.0
41+
<!-- markdown-link-check-disabled -->
42+
[0.0.4]: https://github.com/mineiros-io/terraform-aws-iam-user/compare/v0.0.3...v0.0.4
43+
[0.0.3]: https://github.com/mineiros-io/terraform-aws-iam-user/compare/v0.0.2...v0.0.3
44+
[0.0.2]: https://github.com/mineiros-io/terraform-aws-iam-user/compare/v0.0.1...v0.0.2
45+
[0.0.1]: https://github.com/mineiros-io/terraform-aws-iam-user/releases/tag/v0.0.1

Makefile

+10-4
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ DOCKER_RUN_CMD = docker run ${DOCKER_FLAGS} ${BUILD_TOOLS_DOCKER_IMAGE}
4646
.PHONY: default
4747
default: help
4848

49-
## Run pre-commit hooks in build-tools docker container.
49+
# Not exposed as a callable target by `make help`, since this is a one-time shot to simplify the development of this module.
50+
.PHONY: template/adjust
51+
template/adjust: FILTER = -path ./.git -prune -a -type f -o -type f -not -name Makefile
52+
template/adjust:
53+
@find . $(FILTER) -exec sed -i -e "s,terraform-module-template,$${PWD##*/},g" {} \;
54+
55+
## Run pre-commit hooks inside a build-tools docker container.
5056
.PHONY: test/pre-commit
5157
test/pre-commit: DOCKER_FLAGS += ${DOCKER_SSH_FLAGS}
5258
test/pre-commit:
5359
$(call docker-run,pre-commit run -a)
5460

55-
## Run go tests hooks in build-tools docker container.
61+
## Run all Go tests inside a build-tools docker container. This is complementary to running 'go test ./test/...'.
5662
.PHONY: test/unit-tests
5763
test/unit-tests: DOCKER_FLAGS += ${DOCKER_SSH_FLAGS}
5864
test/unit-tests: DOCKER_FLAGS += ${DOCKER_AWS_FLAGS}
@@ -65,8 +71,8 @@ test/unit-tests:
6571
clean:
6672
$(call rm-command,.terraform)
6773
$(call rm-command,*.tfplan)
68-
$(call rm-command,examples/*/.terraform)
69-
$(call rm-command,examples/*/*.tfplan)
74+
$(call rm-command,*/*/.terraform)
75+
$(call rm-command,*/*/*.tfplan)
7076

7177
## Display help for all targets
7278
.PHONY: help

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Most basic usage showing how to add three users and assigning two policies:
5252

5353
```hcl
5454
module "iam-users" {
55-
source = "git@github.com:mineiros-io/terraform-aws-iam-user.git?ref=v0.0.3"
55+
source = "mineiros-io/iam-user/aws"
56+
version = "~> 0.1.0"
5657
5758
names = [
5859
"user.one",
@@ -238,10 +239,8 @@ Copyright &copy; 2020 [Mineiros GmbH][homepage]
238239
[badge-terraform]: https://img.shields.io/badge/terraform-0.13%20and%200.12.20+-623CE4.svg?logo=terraform
239240
[badge-slack]: https://img.shields.io/badge/slack-@mineiros--community-f32752.svg?logo=slack
240241

241-
<!-- markdown-link-check-disable -->
242242
[build-status]: https://mineiros.semaphoreci.com/projects/terraform-aws-iam-user
243243
[releases-github]: https://github.com/mineiros-io/terraform-aws-iam-user/releases
244-
<!-- markdown-link-check-enable -->
245244
[releases-terraform]: https://github.com/hashicorp/terraform/releases
246245
[apache20]: https://opensource.org/licenses/Apache-2.0
247246
[slack]: https://join.slack.com/t/mineiros-community/shared_invite/zt-ehidestg-aLGoIENLVs6tvwJ11w9WGg
@@ -251,7 +250,6 @@ Copyright &copy; 2020 [Mineiros GmbH][homepage]
251250
[IAM-User-Docs]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html
252251
[Semantic Versioning (SemVer)]: https://semver.org/
253252

254-
<!-- markdown-link-check-disable -->
255253
[examples/example/main.tf]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/examples/example/main.tf
256254
[variables.tf]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/variables.tf
257255
[examples/]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/examples
@@ -260,4 +258,3 @@ Copyright &copy; 2020 [Mineiros GmbH][homepage]
260258
[Makefile]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/Makefile
261259
[Pull Requests]: https://github.com/mineiros-io/terraform-aws-iam-user/pulls
262260
[Contribution Guidelines]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/CONTRIBUTING.md
263-
<!-- markdown-link-check-enable -->

examples/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
- [simple-users/] Create IAM Users with two Policy ARNs attached.
1111

1212
<!-- References -->
13-
<!-- markdown-link-check-disable -->
14-
[example/]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/examples/example
15-
<!-- markdown-link-check-enable -->
13+
[require-mfa-credentials/]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/examples/require-mfa-credentials
14+
[simple-users/]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/examples/simple-users
1615

1716
[homepage]: https://mineiros.io/?ref=terraform-aws-iam-user
1817

@@ -21,9 +20,7 @@
2120
[badge-slack]: https://img.shields.io/badge/slack-@mineiros--community-f32752.svg?logo=slack
2221
[badge-semver]: https://img.shields.io/github/v/tag/mineiros-io/terraform-aws-iam-user.svg?label=latest&sort=semver
2322

24-
<!-- markdown-link-check-disable -->
2523
[releases-github]: https://github.com/mineiros-io/terraform-aws-iam-user/releases
26-
<!-- markdown-link-check-enable -->
2724
[releases-terraform]: https://github.com/hashicorp/terraform/releases
2825
[apache20]: https://opensource.org/licenses/Apache-2.0
2926
[slack]: https://join.slack.com/t/mineiros-community/shared_invite/zt-ehidestg-aLGoIENLVs6tvwJ11w9WGg

examples/require-mfa-credentials/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The `AllowManageOwnGitCredentials`, `AllowManageOwnSSHPublicKeys` and `AllowMana
1414

1515
```hcl
1616
module "iam-users" {
17-
source = "git@github.com:mineiros-io/terraform-aws-iam-user.git?ref=v0.0.3"
17+
source = "mineiros-io/iam-user/aws"
18+
version = "~> 0.1.0"
1819
1920
names = [
2021
"user.one",
@@ -141,7 +142,5 @@ Run `terraform destroy -refresh=false -auto-approve` to destroy all previously c
141142
[apache20]: https://opensource.org/licenses/Apache-2.0
142143
[slack]: https://join.slack.com/t/mineiros-community/shared_invite/zt-ehidestg-aLGoIENLVs6tvwJ11w9WGg
143144

144-
<!-- markdown-link-check-disable -->
145145
[main.tf]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/examples/require-mfa-credentials/main.tf
146-
<!-- markdown-link-check-enable -->
147146
[AWS documentation example]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_aws_my-sec-creds-self-manage.html

examples/require-mfa-credentials/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ provider "aws" {
1515
# ------------------------------------------------------------------------------
1616

1717
module "iam-users" {
18-
source = "git@github.com:mineiros-io/terraform-aws-iam-user.git?ref=v0.0.3"
18+
source = "mineiros-io/iam-user/aws"
19+
version = "~> 0.1.0"
1920

2021
names = [
2122
"user.one",

examples/simple-users/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ The code in [main.tf] defines an example for creating three users and attaching
1212

1313
```hcl
1414
module "iam-users" {
15-
source = "git@github.com:mineiros-io/terraform-aws-iam-user.git?ref=v0.0.3"
15+
source = "mineiros-io/iam-user/aws"
16+
version = "~> 0.1.0"
1617
1718
names = [
1819
"user.one",
@@ -181,6 +182,4 @@ Run `terraform destroy -refresh=false -auto-approve` to destroy all previously c
181182
[apache20]: https://opensource.org/licenses/Apache-2.0
182183
[slack]: https://join.slack.com/t/mineiros-community/shared_invite/zt-ehidestg-aLGoIENLVs6tvwJ11w9WGg
183184

184-
<!-- markdown-link-check-disable -->
185185
[main.tf]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/examples/simple-users/main.tf
186-
<!-- markdown-link-check-enable -->

examples/simple-users/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ provider "aws" {
1515
# ------------------------------------------------------------------------------
1616

1717
module "iam-users" {
18-
source = "git@github.com:mineiros-io/terraform-aws-iam-user.git?ref=v0.0.3"
18+
source = "mineiros-io/iam-user/aws"
19+
version = "~> 0.1.0"
1920

2021
names = [
2122
"user.one",

test/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ Alternatively, you can also run the tests without Docker.
6262

6363
<!-- References -->
6464

65-
<!-- markdown-link-check-disable -->
6665
[Makefile]: https://github.com/mineiros-io/terraform-aws-iam-user/blob/master/Makefile
6766
[Testdirectory]: https://github.com/mineiros-io/terraform-aws-iam-user/tree/master/test
68-
<!-- markdown-link-check-enable -->
6967

7068
[homepage]: https://mineiros.io/?ref=terraform-aws-iam-user
7169
[Terratest]: https://github.com/gruntwork-io/terratest

0 commit comments

Comments
 (0)