Skip to content

Commit

Permalink
Merge pull request #166 from cmurp25/mainline
Browse files Browse the repository at this point in the history
Bug fixes; had to change a line in our shared API file
  • Loading branch information
cmurp25 authored Nov 22, 2024
2 parents 05c19ae + 3fe152f commit e62b171
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cdk/api_gateway/backend_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from distutils.command.build import build
# from distutils.command.build import build
from aws_cdk import (
aws_certificatemanager,
aws_s3_deployment,
Expand Down
2 changes: 1 addition & 1 deletion cdk/api_gateway/shared_api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def create_rest_api(self):
def deploy_api_stage(self, stage_name: str = "prod"):
self.stage = aws_apigateway.Stage(
self, id=stage_name,
deployment=self.api.latestDeployment,
deployment=self.api.latest_deployment,
stage_name=stage_name,
)

Expand Down
18 changes: 9 additions & 9 deletions cdk/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
generates a stack for each user that deploys to their own account.
"""

user = os.environ.get("USER")
stage = f'Dev-{user}'
dev_environment = accounts.get(stage)

if dev_environment:
MakerspaceStack(app, 'Dev', env=accounts[stage])
else:
print(
f'Not creating dev stack: could not locate stage={stage} for user={user}')
# user = os.environ.get("USER")
# stage = f'Dev-{user}'
# dev_environment = accounts.get(stage)

# if dev_environment:
# MakerspaceStack(app, 'Dev', env=accounts[stage])
# else:
# print(
# f'Not creating dev stack: could not locate stage={stage} for user={user}')

app.synth()
2 changes: 1 addition & 1 deletion cdk/visit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from distutils.command.build import build
# from distutils.command.build import build
from aws_cdk import (
aws_certificatemanager,
aws_s3_deployment,
Expand Down

0 comments on commit e62b171

Please sign in to comment.