Skip to content

Commit

Permalink
bump action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalhoun committed Jan 11, 2024
1 parent 347156a commit e8f2e1a
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ jobs:
runs-on: ubuntu-latest
needs: check-dist
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: yarn

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ env.AWS_REGION }}
Expand Down
75 changes: 69 additions & 6 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,82 @@ references:

# Short description of this project
description: |-
A GitHub Action to securely store Terraform plan files in an S3 bucket with metadata storage in DynamoDB.
A GitHub Action to securely store Terraform plan files in a cloud storage (S3 or Azure Blob Storage) with metadata storage in cloud document database (DynamoDB or CosmosDB).
# Introduction to the project
introduction: |-
This is an introduction.
A Github Action to securely store Terraform plan files in a cloud storage (S3 or Azure Blob Storage) with metadata
storage in cloud document database (DynamoDB or CosmosDB). This is useful in CI/CD pipelines where you want to store
the plan files when a feature branch is opened and applied when merged.
# How to use this module. Should be an easy example to copy and paste.
usage: |-
TODO: Add usage instructions
# Example usage
examples: |-
TODO: Add examples
## AWS (default)
```yaml
- name: Store Plan
uses: cloudposse/github-action-terraform-plan-storage@v1
id: store-plan
with:
action: storePlan
planPath: my-plan.tfplan
commitSHA: ${{ github.sha }}
component: mycomponent
stack: core-mycomponent-use1
tableName: acme-terraform-plan-metadata
bucketName: acme-terraform-plans
- name: Get Plan
uses: cloudposse/github-action-terraform-plan-storage@v1
id: get-plan
with:
action: getPlan
planPath: my-plan.tfplan
commitSHA: ${{ github.sha }}
component: mycomponent
stack: core-mycomponent-use1
tableName: acme-terraform-plan-metadata
bucketName: acme-terraform-plans
```
## Azure
```yaml
- name: Store Plan
uses: cloudposse/github-action-terraform-plan-storage@v1
id: store-plan
with:
metadataRepositoryType: cosmos
planRepositoryType: azureblob
action: storePlan
planPath: my-plan.tfplan
commitSHA: ${{ github.sha }}
component: mycomponent
stack: core-mycomponent-use1
blobAccountName: tfplans
blobContainerName: plans
cosmosContainerName: terraform-plan-storage
cosmosDatabaseName: terraform-plan-storage
cosmosEndpoint: "https://my-cosmo-account.documents.azure.com:443/"
- name: Get Plan
uses: cloudposse/github-action-terraform-plan-storage@v1
id: get-plan
with:
metadataRepositoryType: cosmos
planRepositoryType: azureblob
action: getPlan
planPath: my-plan.tfplan
commitSHA: ${{ github.sha }}
component: mycomponent
stack: core-mycomponent-use1
blobAccountName: tfplans
blobContainerName: plans
cosmosContainerName: terraform-plan-storage
cosmosDatabaseName: terraform-plan-storage
cosmosEndpoint: "https://my-cosmo-account.documents.azure.com:443/"
```
# How to get started quickly
#quickstart: |-
Expand Down

0 comments on commit e8f2e1a

Please sign in to comment.