Skip to content

Commit 101ad14

Browse files
Lza upgrade doc ASEA v1.6.1 (#1251)
* documentation updates * CHANGELOG for v1.6.1 * changelog entry for flowlogs dynamic partition
1 parent 775f39c commit 101ad14

File tree

6 files changed

+84
-21
lines changed

6 files changed

+84
-21
lines changed

reference-artifacts/Custom-Scripts/lza-upgrade/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.6.1] - 2025-02-14
9+
10+
### Added
11+
- feat(tools): Add detection of modified route entries in network drift detection script
12+
- feat(convert-config): Handle conversion of VPC Flow Logs log group pattern in dynamic partition
13+
14+
### Changed
15+
- fix(resource-mapping): Use pagination to list stacks and improve nested stacks lookup
16+
- fix(convert-config): Removed inaccurate warnings for SSM Document sharing with nested OUs
17+
- fix(asea-prep): asea-prep command now disables ASEA EventBridge rule that adds the subscription filters to new Log Groups. A new rule is created by LZA during the installation.
18+
819
## [1.6.0] - 2025-01-17
920

1021
### Added

src/mkdocs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Make sure you have configured a virtual environment.
1717

1818
```bash
1919
python -m venv venv
20-
source venv/bin/active
20+
source venv/bin/activate
2121
pip install --upgrade pip && pip install -r requirements.txt
2222
```
2323

src/mkdocs/docs/lza-upgrade/faq.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,23 @@ logging:
6565
6666
```
6767

68-
This is because for upgraded environment, there is already an existing organizational trail configured by ASEA or ControlTower that will continue to be used. We don't recommend changing this to `true` as this will instruct LZA to create a new trail in addition to the existing one created by ASEA.
68+
This is because for upgraded environment, there is already an existing organizational trail configured by ASEA or ControlTower that will continue to be used. We don't recommend changing this to `true` as this will instruct LZA to create a new trail in addition to the existing one created by ASEA.
69+
70+
## Which Service Quotas should be monitored for the upgrade?
71+
72+
Depending on your configuration, the LZA installation can create over 500 IAM Roles in each account. If you already have several IAM Roles in your accounts and using the default limit of 1000, the installation could be blocked by this service quota.
73+
74+
You can make an AWS Config query using the organization aggregator to list the current number of IAM Roles in each account, and request a limit increase proactively.
75+
```
76+
SELECT
77+
accountId,
78+
COUNT(*)
79+
WHERE
80+
resourceType = 'AWS::IAM::Role'
81+
GROUP BY
82+
accountId
83+
ORDER BY
84+
COUNT(*) DESC
85+
```
86+
87+
For more information about LZA related Quotas, refer to the [LZA Documentation about Quotas](https://docs.aws.amazon.com/solutions/latest/landing-zone-accelerator-on-aws/quotas.html) as well as this note about [CodeBuild concurrency](https://docs.aws.amazon.com/solutions/latest/landing-zone-accelerator-on-aws/prerequisites.html#update-codebuild-conncurrency-quota)

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

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,45 +44,51 @@ ASEA-NetworkAssociationsStack-xxxxxx-ca-central-1 failed: Error: The stack named
4444
## Landing Zone Accelerator known issues
4545
The following issues will not prevent a successful upgrade from ASEA to LZA, but can impact functionalities and operations in the upgraded Landing Zone.
4646

47-
### Error adding a new route targeting firewall instance
4847

49-
**Description:** After a successful upgrade, you try to add in `network-config.yaml` a route entry that targets ENI 0 of a firewall appliance using the lookup variable `${ACCEL_LOOKUP::EC2:ENI_0:Firewall_azA:Id}`
48+
### Removal of interface endpoints fails in ImportAseaResources stage
5049

51-
**Symptom or error message:** Error in the NetworkAssociationsStack after adding a route targeting ENI 0 of a firewall appliance.
50+
**Description:** Failure when attempting to remove an interface endpoint that was deployed by ASEA prior to LZA upgrade.
51+
52+
**Symptom or error message:** Failure in ImportAseaResources
5253

5354
```
54-
Resource handler returned message: "Invalid id: "${ACCEL_LOOKUP::EC2:ENI_0:Firewall_azA:Id}" (expecting "eni-...")
55+
ASEA-SharedNetwork-Phase2-VpcEndpoints1 failed: Error [ValidationError]: Template format error: Unresolved resource dependencies [SsmParamEndpointVpccodecommitDns] in the Resources block of the template
5556
```
5657

5758
**Resolution or workaround:** A fix will be available in a future version of LZA.
5859

5960

60-
### Some AWS Config Rules do not evaluate after the upgrade
61+
### Resources are not deleted after being removed from configuration file
6162

62-
**Description:** Some AWS Config Rules deployed by LZA do not evaluate (i.e Last successful detective evaluation appears as 'Not Available' in the console). The equivalent ASEA Config Rule evaluates correctly.
63+
**Description:** You attempt to remove a resource that was deployed by ASEA from the LZA configuration file and it is not removed after a successful LZA pipeline run.
6364

64-
**Symptom or error message:** The scope of changes of Config Rule is set to an empty list of Resource types instead of scoped to **All changes** as in ASEA.
65+
**Symptom or error message:** The LZA pipeline runs with success, but the resource is not deleted.
6566

66-
**Resolution or workaround:** A fix will be available in a future version of LZA. Manually changing the Scope of changes to "All resources" can be a short-term remediation. Alternatively you can opt-out of removing the ASEA Config Rules in the post-upgrade phase. (this will result in duplicate rules being evaluated)
67+
**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.
6768

69+
# Fixed Issues
6870

69-
### Removal of interface endpoints fails in ImportAseaResources stage
71+
## Fixed in LZA v1.11.1
7072

71-
**Description:** Failure when attempting to remove an interface endpoint that was deployed by ASEA prior to LZA upgrade.
73+
The following issued were fixed as part of LZA v1.11.1 release.
7274

73-
**Symptom or error message:** Failure in ImportAseaResources
75+
### Error adding a new route targeting firewall instance
76+
77+
**Description:** After a successful upgrade, you try to add in `network-config.yaml` a route entry that targets ENI 0 of a firewall appliance using the lookup variable `${ACCEL_LOOKUP::EC2:ENI_0:Firewall_azA:Id}`
78+
79+
**Symptom or error message:** Error in the NetworkAssociationsStack after adding a route targeting ENI 0 of a firewall appliance.
7480

7581
```
76-
ASEA-SharedNetwork-Phase2-VpcEndpoints1 failed: Error [ValidationError]: Template format error: Unresolved resource dependencies [SsmParamEndpointVpccodecommitDns] in the Resources block of the template
82+
Resource handler returned message: "Invalid id: "${ACCEL_LOOKUP::EC2:ENI_0:Firewall_azA:Id}" (expecting "eni-...")
7783
```
7884

79-
**Resolution or workaround:** A fix will be available in a future version of LZA.
85+
**Resolution or workaround:** Fixed in LZA v1.11.1
8086

8187

82-
### Resources are not deleted after being removed from configuration file
88+
### Some AWS Config Rules do not evaluate after the upgrade
8389

84-
**Description:** You attempt to remove a resource that was deployed by ASEA from the LZA configuration file and it is not removed after a successful LZA pipeline run.
90+
**Description:** Some AWS Config Rules deployed by LZA do not evaluate (i.e Last successful detective evaluation appears as 'Not Available' in the console). The equivalent ASEA Config Rule evaluates correctly.
8591

86-
**Symptom or error message:** The LZA pipeline runs with success, but the resource is not deleted.
92+
**Symptom or error message:** The scope of changes of Config Rule is set to an empty list of Resource types instead of scoped to **All changes** as in ASEA.
8793

88-
**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.
94+
**Resolution or workaround:** Fixed in LZA v1.11.1

src/mkdocs/docs/lza-upgrade/preparation/prereq-config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- You can run the scripts from your local workstation. If you are filtering egress traffic from your corporate network you need to ensure [outbound connectivity to AWS service endpoints](../troubleshooting.md#network-timeout-or-connectivity-issue-running-the-upgrade-tool).
99
- You will need Git, AWS CLI, NodeJS and Yarn installed.
1010
- We highly recommend having appropriate AWS Support plans on all AWS Accounts of your landing zone. For any issues encountered during the upgrade process you need to open a support case to get assistance and exchange relevant information with AWS staff. At a minimum Developer support is needed on the management account and core landing zones accounts (Logging, Security, Networking and Perimeter) to troubleshoot any cross-account issues. Business support is the minimum recommended tier if you have production workloads in AWS
11+
- Monitor and manage your service quotas. See the FAQ [Which Service Quotas should be monitored for the upgrade?](../faq.md#which-service-quotas-should-be-monitored-for-the-upgrade)
1112
- Upgrading your landing zone from ASEA to LZA requires advanced knowledge of configuring and operating ASEA and LZA landing zones. This operation should be led by your most-experienced resources responsible for your current landing zone operations. Review all the documentation in this upgrade guide and Landing Zone Accelerator implementation guide.
1213

1314

src/mkdocs/docs/lza-upgrade/troubleshooting.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Note: this manual change will need to be re-applied every time you upgrade to a
3737
### Error in Security Stack - CloudFormation did not receive a response from your Custom Resource
3838
Cause: Throttling can happen based on the concurrent Lambda execution quota.
3939

40-
Workaround: Disable the Event Bridge rule `ASEA-SecurityHubFindingsImportToCWLs` in the Security account.
40+
Workaround: Disable the Event Bridge rule `ASEA-SecurityHubFindingsImportToCWLs` in the Security account.
4141

4242
### Error in SecurityResource stack - AWS Config rate exceeded error
4343
Cause: Too many resources are deployed in parallel, leading to rate limiting errors.
@@ -50,6 +50,22 @@ Workaround: Increase the resources allocated to CodeBuild and increase NodeJS `m
5050

5151
Note: this manual change will need to be re-applied every time you upgrade to a new LZA version or re-run the LZA installer pipeline.
5252

53+
### CredentialsProviderError in bootstrap stage
54+
Bootstrap stage fails with the following error
55+
56+
```
57+
error | utils-common-functions | {"name":"CredentialsProviderError","tryNextLink":false}
58+
Could not load credentials from any providers
59+
```
60+
61+
Workaround: Increase the **Number of retries** in the SDK configuration.
62+
1. Go to CodeBuild console and locate the `ASEA-ToolkitProject` project
63+
2. Edit the project, in the Environment variables section:
64+
a) add a new environment variable named `NUMBER_OF_RETRIES`
65+
b) set the value of the a higher value (default: 12)
66+
3. Release the accelerator pipeline again
67+
68+
5369
## Use of opt-in region - "InvalidClientTokenId: The security token included in the request is invalid"
5470
If an AWS opt-in region (e.g. ca-west-1) is enabled in your ASEA environment you need to change the region compatibility of STS session tokens to be valid in all AWS Regions.
5571

@@ -105,4 +121,14 @@ You encounter the following error during an LZA pipeline run after adding an opt
105121

106122
> The stack named ASEA-SecurityStack-<account>-ca-west-1 failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: BadRequestException: The request failed because the GuardDuty service principal does not have permission to the KMS key or the resource specified by the destinationArn parameter. Refer to https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_exportfindings.html
107123
108-
See information about the [Central Logging bucket CMK](./comparison/kms.md#central-logging-bucket) for more details and how to fix the issue.
124+
See information about the [Central Logging bucket CMK](./comparison/kms.md#central-logging-bucket) for more details and how to fix the issue.
125+
126+
## Cannot exceed quota for RolesPerAccount error
127+
You encounter an error similar to this one during LZA installation:
128+
129+
```
130+
Deployment failed: Error: The stack named ASEA-SecurityResourcesStack-<account>-<region> failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Cannot exceed quota for RolesPerAccount: 1000 (Service: Iam, Status Code: 409, Request ID: )" (RequestToken: , HandlerErrorCode: ServiceLimitExceeded)
131+
132+
```
133+
134+
You need to request a limit increase for the RolesPerAccount Quota. See the FAQ [Which Service Quotas should be monitored for the upgrade?](./faq.md#which-service-quotas-should-be-monitored-for-the-upgrade)

0 commit comments

Comments
 (0)