Skip to content

Commit

Permalink
Merge pull request #6 from taahamahdi/add-apprunner
Browse files Browse the repository at this point in the history
Add support for apprunner
  • Loading branch information
gabrielsoltz authored Feb 7, 2024
2 parents a976e80 + b09d6bd commit 27526a6
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ See the full list of ARNs [here](#full-list-of-arns).

# Contributing to this list

ARNs are defined under [aws_arn/data.py](aws_arn/data.py).
ARNs are defined under [aws_arn/data.py](aws_arn/data.py).

Format:

Expand Down Expand Up @@ -141,6 +141,12 @@ arn:aws:ec2:us-east-1:012345789012:instance/test
| apigateway | vpc_link | `arn:{partition}:apigateway:{region}::/vpclinks/{resource_id}` | VpcLinkId | `[a-zA-Z0-9\-_]+` | | AWS::ApiGateway::VpcLink | aws_api_gateway_vpc_link |
| appflow | connector_profile | `arn:{partition}:appflow:{region}:{account}:connectorprofile/{resource_id}` | ConnectorProfileName | `([a-zA-Z0-9-_]{1,256})` | | AWS::AppFlow::ConnectorProfile | aws_appflow_connector_profile |
| appflow | flow | `arn:{partition}:appflow:{region}:{account}:flow/{resource_id}` | FlowName | `([a-zA-Z0-9-_]{1,256})` | | AWS::AppFlow::Flow | aws_appflow_flow |
| apprunner | service | `arn:{partition}:apprunner:{region}:{account}:service/{resource_id}` | Service | `([a-zA-Z0-9-_]{1,256})` | | AWS::AppRunner::Service | aws_apprunner_service |
| apprunner | connection | `arn:{partition}:apprunner:{region}:{account}:connection/{ConnectionName}/{resource_id}` | Connection | `([a-zA-Z0-9-_]{1,256})` | | | aws_apprunner_connection |
| apprunner | auto_scaling_configuration | `arn:{partition}:apprunner:{region}:{account}:autoscalingconfiguration/{resource_name}/{AutoScalingConfigurationVersion}/{resource_id}` | AutoScalingConfiguration | `([a-zA-Z0-9-_]{1,256})` | | AWS::AppRunner::AutoScalingConfiguration | aws_apprunner_auto_scaling_configuration_version |
| apprunner | observability_configuration | `arn:{Partition}:apprunner:{gegion}:{account}:observabilityconfiguration/{resource_name}/{ObservabilityConfigurationVersion}/{resource_id}` | ObservabilityConfiguration | `([a-zA-Z0-9-_]{1,256})` | | AWS::AppRunner::ObservabilityConfiguration | aws_apprunner_observability_configuration |
| apprunner | vpc_connector | `arn:{partition}:apprunner:{gegion}:{account}:vpcconnector/{resource_name}/{VpcConnectorVersion}/{resource_id}` | VpcConnector | `([a-zA-Z0-9-_]{1,256})` | | AWS::AppRunner::VpcConnector | aws_apprunner_vpc_connector |
| apprunner | vpc_ingress_connection | `arn:{partition}:apprunner:{region}:{account}:vpcingressconnection/{resource_name}/{resource_id}` | vpc_ingress_connection | `([a-zA-Z0-9-_]{1,256})` | | AWS::AppRunner::VpcIngressConnection | aws_apprunner_vpc_ingress_connection |
| appstream | directory_config | `arn:{partition}:appstream:{region}:{account}:directoryconfig/{resource_id}` | DirectoryConfigName | `[a-zA-Z0-9-]+` | | AWS::AppStream::DirectoryConfig | aws_appstream_directory_config |
| appstream | fleet | `arn:{partition}:appstream:{region}:{account}:fleet/{resource_id}` | FleetName | `[a-zA-Z0-9-]+` | | AWS::AppStream::Fleet | aws_appstream_fleet |
| appstream | image | `arn:{partition}:appstream:{region}:{account}:image/{resource_id}` | ImageName | `[a-zA-Z0-9-]+` | | AWS::AppStream::Image | aws_appstream_image |
Expand Down Expand Up @@ -583,4 +589,4 @@ arn:aws:ec2:us-east-1:012345789012:instance/test
| workmail | resource | `arn:{partition}:workmail:{region}:{account}:resource/{resource_id}` | ResourceId | `^[a-zA-Z0-9-_]+$` | | AWS::WorkMail::Resource | aws_workmail_resource |
| workmail | user | `arn:{partition}:workmail:{region}:{account}:user/{resource_id}` | UserId | `^[a-zA-Z0-9-_@.]+$` | | AWS::WorkMail::User | aws_workmail_user |
| workspaces | directory | `arn:{partition}:workspaces:{region}:{account}:directory/{resource_id}` | DirectoryId | `^[a-zA-Z0-9_-]{10,64}$` | | AWS::WorkSpaces::Directory | aws_workspaces_directory |
| workspaces | workspace | `arn:{partition}:workspaces:{region}:{account}:workspace/{resource_id}` | WorkspaceId | `^[a-zA-Z0-9_-]{13,68}$` | | AWS::WorkSpaces::Workspace | aws_workspaces_workspace |
| workspaces | workspace | `arn:{partition}:workspaces:{region}:{account}:workspace/{resource_id}` | WorkspaceId | `^[a-zA-Z0-9_-]{13,68}$` | | AWS::WorkSpaces::Workspace | aws_workspaces_workspace |
50 changes: 50 additions & 0 deletions aws_arn/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,56 @@
"terraform": "aws_appflow_flow",
},
},
"apprunner": {
"service": {
"arn_format": "arn:{partition}:apprunner:{region}:{account}:service/{resource_id}",
"id_name": "Service",
"id_regexp": "([a-zA-Z0-9-_]{1,256})",
"asff_name": "",
"cloudformation": "AWS::AppRunner::Service",
"terraform": "aws_apprunner_service",
},
"connection": {
"arn_format": "arn:{partition}:apprunner:{region}:{account}:connection/{ConnectionName}/{resource_id}",
"id_name": "Connection",
"id_regexp": "([a-zA-Z0-9-_]{1,256})",
"asff_name": "",
"cloudformation": "",
"terraform": "aws_apprunner_connection",
},
"auto_scaling_configuration": {
"arn_format": "arn:{partition}:apprunner:{region}:{account}:autoscalingconfiguration/{resource_name}/{AutoScalingConfigurationVersion}/{resource_id}",
"id_name": "AutoScalingConfiguration",
"id_regexp": "([a-zA-Z0-9-_]{1,256})",
"asff_name": "",
"cloudformation": "AWS::AppRunner::AutoScalingConfiguration",
"terraform": "aws_apprunner_auto_scaling_configuration_version",
},
"observability_configuration": {
"arn_format": "arn:{Partition}:apprunner:{gegion}:{account}:observabilityconfiguration/{resource_name}/{ObservabilityConfigurationVersion}/{resource_id}",
"id_name": "ObservabilityConfiguration",
"id_regexp": "([a-zA-Z0-9-_]{1,256})",
"asff_name": "",
"cloudformation": "AWS::AppRunner::ObservabilityConfiguration",
"terraform": "aws_apprunner_observability_configuration",
},
"vpc_connector": {
"arn_format": "arn:{partition}:apprunner:{gegion}:{account}:vpcconnector/{resource_name}/{VpcConnectorVersion}/{resource_id}",
"id_name": "VpcConnector",
"id_regexp": "([a-zA-Z0-9-_]{1,256})",
"asff_name": "",
"cloudformation": "AWS::AppRunner::VpcConnector",
"terraform": "aws_apprunner_vpc_connector",
},
"vpc_ingress_connection": {
"arn_format": "arn:{partition}:apprunner:{region}:{account}:vpcingressconnection/{resource_name}/{resource_id}",
"id_name": "vpc_ingress_connection",
"id_regexp": "([a-zA-Z0-9-_]{1,256})",
"asff_name": "",
"cloudformation": "AWS::AppRunner::VpcIngressConnection",
"terraform": "aws_apprunner_vpc_ingress_connection",
},
},
"appstream": {
"directory_config": {
"arn_format": "arn:{partition}:appstream:{region}:{account}:directoryconfig/{resource_id}",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="aws-arn",
version="0.0.11",
version="0.0.12",
description="A library to work with AWS ARNs",
packages=["aws_arn"],
install_requires=[],
Expand Down

0 comments on commit 27526a6

Please sign in to comment.