Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NAT gateway and ALB, including HTTPS support #16

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

pcholakov
Copy link
Collaborator

This change simplifies the network topology and speeds up typical stack provisioning times by a factor of 2x. It also makes it substantially cheaper as it eliminates the ELB and NAT gateway charges, though it adds an Elastic IP address.

Total deployment time is down to about ~3min for the RestateStack (and unchanged at about 90s for the HolidayTripsServiceStack):

pt-ec2-RestateStack: deploying... [1/2]
pt-ec2-RestateStack: creating CloudFormation changeset...

 ✅  pt-ec2-RestateStack

✨  Deployment time: 184.66s

Outputs:
pt-ec2-RestateStack.ExportsOutputFnGetAttRestateHost1AC4F9D1PublicDnsName90BD9412 = ec2-3-70-234-107.eu-central-1.compute.amazonaws.com
pt-ec2-RestateStack.ExportsOutputFnGetAttRestateInstanceRoleACC59A6FArn348D1AD6 = arn:aws:iam::663487780041:role/pt-ec2-RestateStack-RestateInstanceRoleACC59A6F-7R0y3xFNbiqV
pt-ec2-RestateStack.ExportsOutputFnGetAttRestateRegistrationProviderframeworkonEventC2D8D44FArnB7A27897 = arn:aws:lambda:eu-central-1:663487780041:function:pt-ec2-RestateStack-RestateRegistrationProviderfra-10jMcCxLmJsF
pt-ec2-RestateStack.RestateHostInstanceId = i-0c592b072a3fabda5
pt-ec2-RestateStack.RestateIngressEndpoint = http://ec2-3-70-234-107.eu-central-1.compute.amazonaws.com:8080
pt-ec2-RestateStack.RestateRegistrationProviderToken6ED9A8E4 = arn:aws:lambda:eu-central-1:663487780041:function:pt-ec2-RestateStack-RestateRegistrationProviderfra-10jMcCxLmJsF
Stack ARN:
arn:aws:cloudformation:eu-central-1:663487780041:stack/pt-ec2-RestateStack/6e2421c0-92bd-11ee-90af-065b337bb103

✨  Total time: 190.65s

This change simplifies the network topology and speeds up typical stack provisioning times by a factor of 2x. It also makes it substantially cheaper as it eliminates the ELB and NAT gateway charges, though it adds an Elastic IP address.
@pcholakov pcholakov merged commit db28f40 into restatedev:main Dec 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants