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

Feature/cognito #6

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
mike dupont committed Dec 16, 2024
commit c6fd42cd730a1f68b233e7e54b15f009e0c4cf2e
9 changes: 8 additions & 1 deletion environments/swarms-aws-agent-api/dev/us-east-1/Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Done

1. create vpc
2. create iam roles and users
3. create asg and alb and route53 and acm

# Todo

1. create cognito pool
2. create ami
4. create iam roles and users

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the 'custom git modules'?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i mean swarms will be deployed via git

Original file line number Diff line number Diff line change
@@ -2,21 +2,24 @@
## Phase 1

0. create standard vpc with a private network to host ec2,
this uses a natgw that costs money bhttps://aws.amazon.com/vpc/pricing/
0.45 so we will put the intances in public for now and use security groups to limit access.
this uses a natgw that costs money https://aws.amazon.com/vpc/pricing/
so we will put the intances in public for now and use security groups to limit access.

1. create minimal ec2 instance in machine_image

terraform (later packer) for ubuntu python uvicorn fastapi nginx systemd server with custom git modules
terraform for ubuntu python uvicorn fastapi nginx systemd server with custom git modules

2. create minimal ec2 ami from instance in machine_image
3. create autoscaling_group of size 1 for image
4. create application load balancer
5. create dns_entry

send users back to server via sticky sessions or some id.

5. create dns_entry
6. create cognito user pool for login
# todo

1. alb sticky sessions :send users back to server via sticky sessions or some id.
2. create cognito user pool for login
7. create work_queue
8. create lambda_workers on queue
9. create resource_launchers to create new resources.
10. packer ami for ubuntu python uvicorn fastapi nginx systemd server with custom git modules
7 changes: 4 additions & 3 deletions environments/swarms-aws-agent-api/dev/us-east-1/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
# instance_type = "t3.large"
instance_type = "t3.medium"
# instance_type = "t3.medium"
ami = "ami-0e2c8caa4b6378d8c"
name = "swarms"
region = "us-east-1"
@@ -41,9 +41,10 @@ variable "instance_types" {
# "t4g.nano", "t3a.nano", "t3.nano", "t2.nano",
# "t4g.micro", "t3a.micro", "t3.micro", "t2.micro", "t1.micro",
#"t4g.small", "t3a.small",
"t3.small",
#"t3.small",
#"t2.small", not working
# "t2.medium" # "t3.medium"
# "t2.medium" #
"t3.medium"
]
}

Loading