1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
As you know, it is possible to use the AWS CLI with shell scripts to create and delete VPC endpoints as needed.
Another way would be to combine Lambda and DynamoDB to automate creation and deletion.
When you want to connect to EC2, run Lambda and register information such as execution time to DynamoDB.
I think it is possible to automate the deletion of VPC endpoints by deleting records after a certain period of time using DynamoDB's TTL settings and starting Lambda at the same time.
This method requires some programming knowledge such as Python.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/time-to-live-ttl-streams.html
The configuration diagram will look like this:
Relevant content
- asked 2 years ago
- asked 24 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
Interesting idea to use lambda, thanks!