Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-4031

Investigate how to prevent AWS overspending in a developer personal account

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Analyze resource usage and explore cost management strategies for a free account to ensure spending stays within limited budget.

        Attachments

          Issue Links

            Activity

            sjagarap saideepthi jagarapu created issue -
            sjagarap saideepthi jagarapu made changes -
            Field Original Value New Value
            Epic Link IGBF-2323 [ 18477 ]
            sjagarap saideepthi jagarapu made changes -
            Link This issue clones IGBF-4026 [ IGBF-4026 ]
            sjagarap saideepthi jagarapu made changes -
            Assignee Pranav Bhatia [ pbhatia1 ] saideepthi jagarapu [ sjagarap ]
            sjagarap saideepthi jagarapu made changes -
            Description Enable AWS Admin to achieve the following functionality for users in a specific group:

            Users added to the group should have permissions to perform the following actions only for EC2 instances with a specific tag:

            * Modify EC2 instance state (Start, Stop, and Restart)
            * Modify Security Groups associated with those instances
            Analyze resource usage and explore cost management strategies for a free account to ensure spending stays within limited budget.
            sjagarap saideepthi jagarapu made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            ann.loraine Ann Loraine made changes -
            Sprint Fall 7 [ 208 ] Fall 7, Fall 8 [ 208, 209 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            Hide
            sjagarap saideepthi jagarapu added a comment -

            Clearly there is no automatic stop mechanism, we can only have alerts.
             
            1.  Configure AWS CloudWatch Alarms: These are used for real-time resource monitoring and custom threshold-based alerts. We can put custom threshold limit for resources usage like 80% or so and later decide which process to stop to reduce usage which can be done by creating a lambda to stop the process. For a free account we have 10 free alarms/month.

            2.  Configure AWS Free Tier usage alerts: Enable Free Tier usage alerts in Billing preferences. This will automatically notify via email when you exceed 85% of your Free Tier limit for each service. For a free account there are unlimited alerts.

            3. Automate Resource Management
            a. Create Lambda functions to automatically shut down EC2 and RDS instances after working hours and restart them an hour before office hours begin.
            b. Implement a function to identify and terminate unused resources.
            c. Set up EventBridge rules with schedules like rule to trigger the stop and start function, to run resource cleanup function periodically.
            d. Identify unused resources using AWS tools and set specific thresholds for idle time (e.g., resources unused for 24 hours)
            e. Destroy unused resources at the end of test cycles to avoid unnecessary costs.

            4. Plan and Tag Resources
            a. Tag all resources to improve cost visibility and track usage effectively.
            b. Identify and tag underutilized or idle resources, stop or delete them as needed.

            5. Enforce Spending Controls
            a. Use a credit card with a low limit to cap spending.
            b. Set up a central account (payer account) with sub-accounts under AWS Organizations.
            c. Implement quotas in sub-accounts to limit spending, monitor usage across all child accounts from the central payer account.

            Show
            sjagarap saideepthi jagarapu added a comment - Clearly there is no automatic stop mechanism, we can only have alerts.   1.   Configure AWS CloudWatch Alarms: These are used for real-time resource monitoring and custom threshold-based alerts. We can put custom threshold limit for resources usage like 80% or so and later decide which process to stop to reduce usage which can be done by creating a lambda to stop the process. For a free account we have 10 free alarms/month. 2.  Configure AWS Free Tier usage alerts : Enable Free Tier usage alerts in Billing preferences. This will automatically notify via email when you exceed 85% of your Free Tier limit for each service. For a free account there are unlimited alerts. 3. Automate Resource Management a. Create Lambda functions to automatically shut down EC2 and RDS instances after working hours and restart them an hour before office hours begin. b. Implement a function to identify and terminate unused resources. c. Set up EventBridge rules with schedules like rule to trigger the stop and start function, to run resource cleanup function periodically. d. Identify unused resources using AWS tools and set specific thresholds for idle time (e.g., resources unused for 24 hours) e. Destroy unused resources at the end of test cycles to avoid unnecessary costs. 4. Plan and Tag Resources a. Tag all resources to improve cost visibility and track usage effectively. b. Identify and tag underutilized or idle resources, stop or delete them as needed. 5.  Enforce Spending Controls a. Use a credit card with a low limit to cap spending. b. Set up a central account (payer account) with sub-accounts under AWS Organizations. c. Implement quotas in sub-accounts to limit spending, monitor usage across all child accounts from the central payer account.
            sjagarap saideepthi jagarapu made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            sjagarap saideepthi jagarapu made changes -
            Assignee saideepthi jagarapu [ sjagarap ]
            ann.loraine Ann Loraine made changes -
            Sprint Fall 7, Winter 1 [ 208, 209 ] Fall 7, Winter 1, Spring 1 [ 208, 209, 210 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Sprint Fall 7, Winter 1, Spring 1 [ 208, 209, 210 ] Fall 7, Winter 1, Spring 1, Spring 2 [ 208, 209, 210, 211 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Sprint Fall 7, Winter 1, Spring 1, Spring 2 [ 208, 209, 210, 211 ] Fall 7, Winter 1, Spring 1, Spring 2, Spring 3 [ 208, 209, 210, 211, 212 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            ann.loraine Ann Loraine made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            ann.loraine Ann Loraine made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]
            ann.loraine Ann Loraine made changes -
            Assignee saideepthi jagarapu [ sjagarap ]
            ann.loraine Ann Loraine made changes -
            Summary Investigate methods to prevent AWS overspending. Investigate how to prevent AWS overspending in a developer personal account

              People

              • Assignee:
                sjagarap saideepthi jagarapu
                Reporter:
                sjagarap saideepthi jagarapu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: