Skip to content

Commit a1b447c

Browse files
committed
Reorder and update inputs/descriptions to be in sync with the README
1 parent 3c31633 commit a1b447c

File tree

2 files changed

+34
-42
lines changed

2 files changed

+34
-42
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ The following inputs can be used as `steps.with` keys:
6868
| **AWS configuration** |
6969
| `aws_access_key_id` | string | | AWS access key ID (Required) |
7070
| `aws_secret_access_key` | string | | AWS secret access key (Required) |
71-
| `aws_session_token` | string | | AWS session token |
71+
| `aws_session_token` | string | | AWS session token, if you're using temporary credentials |
7272
| `aws_default_region` | string | `us-east-1` | AWS default region (Required) |
7373
| `aws_ec2_instance_type` | string | `t2.medium` | The AWS EC2 instance type. |
7474
| `aws_ec2_instance_profile` | string | | [The AWS IAM instance profile](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html) to use for the EC2 instance. Use if you want to pass an AWS role with specific permissions granted to the instance |
75-
| `aws_resource_identifier` | string | `${org}-{repo}-{branch}` | Auto-generated by default so it's unique for org/repo/branch. Set to override with custom naming the unique AWS resource identifier for the deployment. |
75+
| `aws_resource_identifier` | string | `${org}-${repo}-${branch}` | Auto-generated by default so it's unique for org/repo/branch. Set to override with custom naming the unique AWS resource identifier for the deployment. |
7676
| `aws_create_vpc` | bool | `false` | Whether an AWS VPC should be created in the action. Otherwise, the existing default VPC will be used. |
7777
| `infrastructure_only` | bool | `false` | Does infrastructure (i.e. terraform) but **not** the deployment (i.e. ansible) |
7878
| **Teraform configuration** |
79-
| `tf_state_bucket` | string | `${org}-${repo}-{branch}-tf-state` | AWS S3 bucket to use for Terraform state. By default, a new deployment will be created for each unique branch. Hardcode if you want to keep a shared resource state between the several branches. |
79+
| `tf_state_bucket` | string | `${org}-${repo}-${branch}-tf-state` | AWS S3 bucket to use for Terraform state. By default, a new deployment will be created for each unique branch. Hardcode if you want to keep a shared resource state between the several branches. |
8080
| **StackStorm configuration** |
8181
| `st2_auth_username` | string | | Username used by StackStorm standalone authentication. Set as a secret in GH Actions. |
8282
| `st2_auth_password` | string | | Password used by StackStorm standalone authentication. Set as a secret in GH Actions. |
8383
| `st2_packs` | string |`"st2"` | Comma separated list of packs to install. If you modify this option, be sure to also include `st2` in the list. |
8484
| **Cleanup** |
8585
| `tf_stack_destroy` | bool | `false` | Set to `true` to Destroy the created AWS infrastructure for this instance |
86-
| `tf_state_bucket_destroy` | bool | `false` | Force purge and deletion of `tf_state_bucket` defined. Any file contained there will be destroyed. `tf_stack_destroy` must also be `true`. Use if you want to clean up the resources |
86+
| `tf_state_bucket_destroy` | bool | `false` | Force purge and deletion of `tf_state_bucket` defined. Any file contained there will be destroyed. `tf_stack_destroy` must also be `true` |
8787

8888

8989
## Note about AWS resource identifiers

action.yaml

Lines changed: 30 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,66 +7,63 @@ inputs:
77
checkout:
88
description: 'Specifies if this action should checkout the code'
99
required: false
10-
default: 'true'
10+
default: true
11+
12+
# AWS Configuration
1113
aws_access_key_id:
1214
description: 'AWS access key ID'
1315
required: true
1416
aws_secret_access_key:
1517
description: 'AWS secret access key'
1618
required: true
1719
aws_session_token:
18-
description: 'AWS session token'
20+
description: "AWS session token, if you're using temporary credentials"
1921
required: false
2022
aws_default_region:
2123
description: 'AWS default region'
2224
required: true
23-
default: 'us-east-1'
24-
tf_state_bucket:
25-
description: 'AWS S3 bucket to use for Terraform state. Defaults to `${org}-${repo}-{branch}-tf-state`'
26-
required: false
27-
tf_state_bucket_destroy:
28-
description: 'Force purge and deletion of S3 bucket defined. Any file contained there will be destroyed `tf_stack_destroy` must also be `true`'
29-
required: false
30-
default: 'false'
31-
aws_ec2_instance_profile:
32-
description: 'The AWS IAM instance profile to use for the EC2 instance. Use if you want to pass an AWS role with specific permissions granted to the instance'
25+
default: us-east-1
3326
aws_ec2_instance_type:
3427
description: 'The AWS EC2 instance type'
3528
default: t2.medium
36-
tf_stack_destroy:
37-
description: 'Set to "true" to Destroy the created AWS infrastructure for this instance'
29+
aws_ec2_instance_profile:
30+
description: 'The AWS IAM instance profile to use for the EC2 instance. Use if you want to pass an AWS role with specific permissions granted to the instance'
3831
aws_resource_identifier:
39-
description: 'Set to override the AWS resource identifier for the deployment. Defaults to `${org}-{repo}-{branch}`. Use with destroy to destroy specific resources.'
40-
# domain_name:
41-
# description: 'Define the root domain name for the application. e.g. app.com'
42-
# required: true
43-
# create_domain:
44-
# description: "Bool, whether the domain should be created in the action. Default is false"
45-
# default: false
46-
# sub_domain:
47-
# description: 'Define the sub-domain part of the URL. Defaults to `${org}-${repo}-{branch}`'
48-
# create_hosted_zone:
49-
# description: "Bool, whether the hosted zone should be created in the action. Default is false"
50-
# default: false
32+
description: 'Auto-generated by default so it's unique for org/repo/branch. Set to override with custom naming the unique AWS resource identifier for the deployment. Defaults to `${org}-${repo}-${branch}`.'
5133
aws_create_vpc:
52-
description: "Bool, whether an AWS VPC should be created in the action. Default is false"
34+
description: 'Bool, whether an AWS VPC should be created in the action. Otherwise, the existing default VPC will be used.'
5335
default: false
5436
infrastructure_only:
55-
description: "Bool, does infrastructure (i.e. terraform) but **not** the deployment (i.e. ansible) . Default is false"
37+
description: 'Does infrastructure (i.e. terraform) but **not** the deployment (i.e. ansible)'
5638
default: false
5739

40+
# Terraform configuration
41+
tf_state_bucket:
42+
description: 'AWS S3 bucket to use for Terraform state. Defaults to `${org}-${repo}-${branch}-tf-state`'
43+
required: false
5844

59-
# ST2 config
45+
# StackStorm configuration
6046
st2_auth_username:
61-
description: Username used by StackStorm standalone authentication
47+
description: 'Username used by StackStorm standalone authentication. Set as a secret in GH Actions.'
48+
required: true
6249
st2_auth_password:
63-
description: Password used by StackStorm standalone authentication
50+
description: 'Password used by StackStorm standalone authentication. Set as a secret in GH Actions.'
51+
required: true
6452
st2_packs:
65-
description: String. Comma separated list of packs to install. This flag does not work with a --python3 only pack. (default `"st2"`). If you modify this option, be sure to also include `st2` in the list.
53+
description: 'Comma separated list of packs to install. If you modify this option, be sure to also include `st2` in the list.'
6654
default: "st2"
55+
56+
# Cleanup
57+
tf_stack_destroy:
58+
description: 'Set to "true" to Destroy the created AWS infrastructure for this instance'
59+
default: false
60+
tf_state_bucket_destroy:
61+
description: 'Force purge and deletion of tf_state_bucket defined. Any file contained there will be destroyed. tf_stack_destroy must also be true.'
62+
default: false
63+
6764
outputs:
6865
lb_url:
69-
description: "The URL of the generated app"
66+
description: 'The URL of the generated app'
7067
value: ${{ steps.deploy.outputs.lb_url }}
7168

7269
runs:
@@ -94,11 +91,6 @@ runs:
9491
EC2_INSTANCE_TYPE: ${{ inputs.aws_ec2_instance_type }}
9592
STACK_DESTROY: ${{ inputs.tf_stack_destroy }}
9693
AWS_RESOURCE_IDENTIFIER: ${{ inputs.aws_resource_identifier }}
97-
# DOMAIN_NAME: ${{ inputs.domain_name }}
98-
# CREATE_DOMAIN: ${{ inputs.CREATE_DOMAIN }}
99-
# SUB_DOMAIN: ${{ inputs.sub_domain }}
100-
# CREATE_HOSTED_ZONE: ${{ inputs.CREATE_HOSTED_ZONE }}
101-
10294
CREATE_VPC: ${{ inputs.aws_create_vpc }}
10395

10496
# Skip ansible deployment if deploying only infrastructure

0 commit comments

Comments
 (0)