Skip to content

Conversation

@socrativejh
Copy link

What does this PR do?
• Adds a createVpc tool to allow users to create AWS VPCs via MCP prompt-based commands.
• Increases Lambda timeout to 900 seconds and adds necessary EC2 permissions to support VPC creation.

Why is this needed?
• While MCP currently supports observing AWS resources, adding creation capabilities expands its practical use in real-world environments.
• Users can now automate AWS environment setup directly via MCP, improving onboarding and hands-on cloud learning workflows.

Background
• I recently completed my internship as a Cloud Support Engineering Intern at AWS Korea (Dec 2024 - June 2025).
• During my internship, I used your MCP open-source project in several internal learning and automation projects, which greatly helped me learn AWS resource management.
• I would like to share back this example contribution to express my gratitude and to help expand MCP’s usage.
My LinkedIn

How to use
• Example prompt:

createVpc(params={"cidr_block":"10.10.0.0/16","az_list":["us-west-2a","us-west-2b"],"public_subnets_per_az":1,"private_subnets_per_az":1,"name_tag":"mcp"})

The tool will create a VPC with public and private subnets across the specified AZs.

Changes
server-http-python-lambda/server/app.py: Added createVpc tool with VPC creation logic.
server-http-python-lambda/template.yaml: Increased Lambda timeout to 900 seconds and added necessary EC2 permissions for VPC creation.

Result Screenshot
VPC-us-west--07-04-2025_02_22_PM

Thank you for making this amazing tool! Please let me know if you would like any adjustments or additional tests for this contribution.🙂

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.

1 participant