Skip to content

Commit 05af0d2

Browse files
committed
Rename ec2_instance_profile -> aws_ec2_instance_profile
1 parent 508c429 commit 05af0d2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The following inputs can be used as `steps.with` keys:
7171
| `aws_session_token` | string | | AWS session token |
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. |
74-
| `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 |
74+
| `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 |
7575
| `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) |

action.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ inputs:
2828
description: 'Force purge and deletion of S3 bucket defined. Any file contained there will be destroyed `stack_destroy` must also be `true`'
2929
required: false
3030
default: 'false'
31-
ec2_instance_profile:
32-
description: 'The AWS IAM instance profile to use for the EC2 instance'
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'
3333
aws_ec2_instance_type:
34-
description: 'The AWS EC2 instance type. Default is "t2.medium"'
34+
description: 'The AWS EC2 instance type'
35+
default: t2.medium
3536
stack_destroy:
3637
description: 'Set to "true" to Destroy the stack'
3738
aws_resource_identifier:
@@ -89,7 +90,7 @@ runs:
8990
TF_STATE_BUCKET_DESTROY: ${{ inputs.tf_state_bucket_destroy }}
9091

9192
APP_PORT: ${{ inputs.app_port }}
92-
EC2_INSTANCE_PROFILE: ${{ inputs.ec2_instance_profile }}
93+
EC2_INSTANCE_PROFILE: ${{ inputs.aws_ec2_instance_profile }}
9394
EC2_INSTANCE_TYPE: ${{ inputs.aws_ec2_instance_type }}
9495
STACK_DESTROY: ${{ inputs.stack_destroy }}
9596
AWS_RESOURCE_IDENTIFIER: ${{ inputs.aws_resource_identifier }}

0 commit comments

Comments
 (0)