AWS forecast medium security documentation change
Summary
Removed overly permissive IAM policy examples (e.g., Action '*', Resource '*') and updated placeholder account IDs to valid formats. Added section headers for JSON policy examples.
Security assessment
The removal of policies granting unrestricted access (Action '*', Resource '*') directly addresses security risks by eliminating examples that encourage insecure configurations. Replacing placeholder account IDs (e.g., EXAMPLE_ACCOUNT_ID_12349858) with valid formats (111122223333) improves policy specificity, reducing accidental exposure risks. These changes promote least-privilege principles.
Diff
diff --git a/forecast/latest/dg/security_iam_id-based-policy-examples.md b/forecast/latest/dg/security_iam_id-based-policy-examples.md index c847d3e8a..b5193d4d9 100644 --- a//forecast/latest/dg/security_iam_id-based-policy-examples.md +++ b//forecast/latest/dg/security_iam_id-based-policy-examples.md @@ -85,0 +86,6 @@ The following policy grants full access to all Amazon Forecast actions when usin +JSON + + +**** + + @@ -190,12 +196,0 @@ To grant the administrator user all of the permissions available for your accoun - - { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": "*", - "Resource": "*" - } - ] - } - @@ -205,0 +201,6 @@ You might choose to create a user who has permissions for all Amazon Forecast ac +JSON + + +**** + + @@ -235,0 +238,6 @@ You might choose to create a user who has permissions for all Amazon Forecast ac +JSON + + +**** + + @@ -252 +260 @@ You might choose to create a user who has permissions for all Amazon Forecast ac - "Resource": "arn:aws:iam::EXAMPLE_ACCOUNT_ID_12349858:role/EXAMPLE_ROLE_TO_ALLOW_TO_PASS", + "Resource": "arn:aws:iam::111122223333:role/EXAMPLE_ROLE_TO_ALLOW_TO_PASS", @@ -266,25 +274,0 @@ The following policy grants permissions to Amazon Forecast actions that allow a - - { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "forecast:DescribeDataset", - "forecast:DescribeDatasetGroup", - "forecast:DescribeDatasetImportJob", - "forecast:DescribeForecast", - "forecast:DescribeForecastExportJob", - "forecast:DescribePredictor", - "forecast:ListDatasetGroups", - "forecast:ListDatasetImportJobs", - "forecast:ListDatasets", - "forecast:ListDatasetExportJobs", - "forecast:ListForecasts", - "forecast:ListPredictors" - ], - "Resource": "*" - } - ] - } - @@ -295,34 +278,0 @@ You can create a user who has permissions for all Amazon Forecast actions, but d - - { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "forecast:*" - ], - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:PassRole" - ], - "Resource": "*", - "Condition": { - "StringEquals": { - "iam:PassedToService": "forecast.amazonaws.com" - } - } - }, - { - "Effect": "Allow", - "Action": [ - "kms:Decrypt", - "kms:GenerateDataKey" - ], - "Resource": "arn:aws:iam::1234567890:key/example_key" - } - ] - } -