Reputation: 31
I would like to find out if there is an easy way to find out whether given launch configuration is created using AWS Console or Programmatically?
Usecase:
We are planning to avoid copying/creating launch configuration using AWS-Console, so we would like to implement some alert system if there is any launch configuration created using AWS-Console.
So is there any way we can look at a flag on the launch configuration and differentiate if the launch configuration is created using AWS Console or not?
Upvotes: 1
Views: 67
Reputation: 5888
My suggestion would be: Use only CloudFormation to create the LaunchConfigs and then check for the existence of relevant CF-tags.
Added bonus: you can create a specific role for CF to launch EC2 instances and then revoke all permissions for your users.
Upvotes: 0
Reputation: 3259
Quick thought
Approach 1
Approach 2
Write a program which is monitoring CloutTrail logs. because all the things we do whether via console or API are/can_be logged in CloudTrail
Upvotes: 0