lyn2919: Update all references to O3DE

- Also fix issue where invalid SIDs could be generated
- Make default project name consistent across Gems
This commit is contained in:
Pip Potter
2021-04-30 15:10:57 -07:00
parent bdd1f8dfe4
commit 7e678e15e8
10 changed files with 26 additions and 24 deletions
+4 -2
View File
@@ -8,7 +8,7 @@
remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
"""
import re
from aws_cdk import core
@@ -21,7 +21,9 @@ def format_aws_resource_id(feature_name: str, project_name: str, env: core.Envir
def format_aws_resource_sid(feature_name: str, project_name: str, resource_type: str):
return f'{project_name}{feature_name}{resource_type}SId'
sid = f'{project_name}{feature_name}{resource_type}SId'
# Strip out all chars not valid in a sid
return re.sub(r'[^a-zA-Z0-9]', '', sid)
def format_aws_resource_authenticated_id(feature_name: str, project_name: str, env: core.Environment,