From d60d043e4b13ecdcd0b1b06f8d7c1d985528cfa1 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Thu, 29 May 2025 15:49:23 -0500 Subject: [PATCH] chore: Replace Makefile with atmos.yaml --- Makefile | 10 ---------- README.yaml | 8 ++------ atmos.yaml | 12 ++++++++++++ docs/targets.md | 12 ------------ docs/terraform.md | 46 ---------------------------------------------- 5 files changed, 14 insertions(+), 74 deletions(-) delete mode 100644 Makefile create mode 100644 atmos.yaml delete mode 100644 docs/targets.md delete mode 100644 docs/terraform.md diff --git a/Makefile b/Makefile deleted file mode 100644 index d1d7461..0000000 --- a/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -SHELL := /bin/bash - -# List of targets the `readme` target should call before generating the readme -export README_DEPS ?= docs/targets.md docs/terraform.md - --include $(shell curl -sSL -o .build-harness "https://cloudposse.tools/build-harness"; echo .build-harness) - -## Lint terraform code -lint: - $(SELF) terraform/install terraform/get-modules terraform/get-plugins terraform/lint terraform/validate \ No newline at end of file diff --git a/README.yaml b/README.yaml index 3abb456..0311919 100644 --- a/README.yaml +++ b/README.yaml @@ -22,7 +22,7 @@ badges: url: https://github.com/cloudposse/terraform-aws-ssm-parameter-store-policy-documents/commits - name: Slack Community image: https://slack.cloudposse.com/for-the-badge.svg - url: https://slack.cloudposse.com + url: https://cloudposse.com/slack # List any related terraform modules that this module may be used with or that this module depends on. related: @@ -129,9 +129,5 @@ examples: |- ``` # Other files to include in this README from the project folder -include: - - "docs/terraform.md" - - "docs/targets.md" - -# Contributors to this project +include: [] contributors: [] diff --git a/atmos.yaml b/atmos.yaml new file mode 100644 index 0000000..b5a4a8f --- /dev/null +++ b/atmos.yaml @@ -0,0 +1,12 @@ +# Atmos Configuration — powered by https://atmos.tools +# +# This configuration enables centralized, DRY, and consistent project scaffolding using Atmos. +# +# Included features: +# - Organizational custom commands: https://atmos.tools/core-concepts/custom-commands +# - Automated README generation: https://atmos.tools/cli/commands/docs/generate +# + +# Import shared configuration used by all modules +import: + - https://raw.githubusercontent.com/cloudposse/.github/refs/heads/main/.github/atmos/terraform-module.yaml diff --git a/docs/targets.md b/docs/targets.md deleted file mode 100644 index 3dce8b3..0000000 --- a/docs/targets.md +++ /dev/null @@ -1,12 +0,0 @@ - -## Makefile Targets -```text -Available targets: - - help Help screen - help/all Display help for all targets - help/short This help short screen - lint Lint terraform code - -``` - diff --git a/docs/terraform.md b/docs/terraform.md deleted file mode 100644 index 74f7115..0000000 --- a/docs/terraform.md +++ /dev/null @@ -1,46 +0,0 @@ - -## Requirements - -No requirements. - -## Providers - -| Name | Version | -|------|---------| -| [aws](#provider\_aws) | n/a | - -## Modules - -No modules. - -## Resources - -| Name | Type | -|------|------| -| [aws_caller_identity.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | -| [aws_iam_policy_document.manage_kms_store](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | -| [aws_iam_policy_document.manage_parameter_store](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | -| [aws_iam_policy_document.put_xray_trace](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | -| [aws_iam_policy_document.read_parameter_store](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | -| [aws_iam_policy_document.write_parameter_store](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | -| [aws_region.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | - -## Inputs - -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [account\_id](#input\_account\_id) | The account id of the parameter store you want to allow access to. If none supplied, it uses the current account id of the provider. | `string` | `""` | no | -| [kms\_key](#input\_kms\_key) | The arn of the KMS key that you want to allow access to. If empty it uses a wildcard resource (`*`). | `string` | `""` | no | -| [parameter\_root\_name](#input\_parameter\_root\_name) | The prefix or root parameter that you want to allow access to. | `string` | `""` | no | -| [region](#input\_region) | The region of the parameter store value that you want to allow access to. If none supplied, it uses the current region of the provider. | `string` | `""` | no | - -## Outputs - -| Name | Description | -|------|-------------| -| [manage\_kms\_store\_policy](#output\_manage\_kms\_store\_policy) | A JSON policy document that allows decryption access to a KMS key. | -| [manage\_parameter\_store\_policy](#output\_manage\_parameter\_store\_policy) | A JSON policy document that allows full access to the parameter store. | -| [put\_xray\_trace\_policy](#output\_put\_xray\_trace\_policy) | A JSON policy document that allows putting data into x-ray for tracing parameter store requests. | -| [read\_parameter\_store\_policy](#output\_read\_parameter\_store\_policy) | A JSON policy document that only allows read access to the parameter store. | -| [write\_parameter\_store\_policy](#output\_write\_parameter\_store\_policy) | A JSON policy document that only allows write access to the parameter store. | -