Skip to content

Commit 755923a

Browse files
fix: convert-config vpc endpoint default policy (#1304)
1 parent b9774ce commit 755923a

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

reference-artifacts/Custom-Scripts/lza-upgrade/src/convert-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2675,7 +2675,7 @@ export class ConvertAseaConfig {
26752675
{
26762676
Effect: 'Allow',
26772677
Principal: '*',
2678-
Action: 'ec2:*',
2678+
Action: '*',
26792679
Resource: '*',
26802680
},
26812681
],

src/mkdocs/docs/lza-upgrade/known-issues.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,31 @@ The following issues will not prevent a successful upgrade from ASEA to LZA, but
7979

8080
**Resolution or workaround:** Not all ASEA resources support deletion through the LZA configuration and pipeline. Review the [ASEA Resource Handlers](./asea-resource-handlers.md) page for the current state of supported handlers.
8181

82+
### Insufficient permissions on VPC Endpoints added after LZA upgrade
83+
84+
**Description:** New VPC Endpoints created in LZA have a policy limited to `ec2:*` actions.
85+
86+
**Root cause:** Earlier versions of the convert-config code generated a default VPC Endpoint policy file with incorrect permissions. The policy defined in `vpc-endpoint-policies/default.json` is applied to **new** VPC Endpoints created by LZA after the upgrade, this doesn't affect existing endpoints that were created in ASEA before the upgrade.
87+
88+
**Resolution or workaround:** Open the `vpc-endpoint-policies/default.json` from your LZA configuration (i.e. CodeCommit repository `ASEA-LZA-Config`) and update the policy to grant full access to the endpoint for the default policy.
89+
90+
```json
91+
{
92+
"Statement": [
93+
{
94+
"Effect": "Allow",
95+
"Principal": "*",
96+
"Action": "*",
97+
"Resource": "*"
98+
}
99+
]
100+
}
101+
```
102+
103+
Reference: https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-access.html#default-endpoint-policy
104+
105+
**Note:** Review [IInterfaceEndpointConfig](https://awslabs.github.io/landing-zone-accelerator-on-aws/latest/typedocs/interfaces/___packages__aws_accelerator_config_dist_packages__aws_accelerator_config_lib_models_network_config.IInterfaceEndpointConfig.html) from the LZA Documentation for available options to configure per-endpoint policies if required.
106+
82107

83108
# Fixed Issues
84109

0 commit comments

Comments
 (0)