Amazon Fargate Federal Information Processing Standard (FIPS-140) - Amazon Elastic Container Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Fargate Federal Information Processing Standard (FIPS-140)

Federal Information Processing Standard (FIPS). FIPS-140 is a U.S. and Canadian government standard that specifies the security requirements for cryptographic modules that protect sensitive information. FIPS-140 defines a set of validated cryptography functions that can be used to encrypt data in transit and data at rest.

When you turn on FIPS-140 compliance, you can run workloads on Fargate in a manner that is compliant with FIPS-140. For more information about FIPS-140 compliance, see Federal Information Processing Standard (FIPS) 140-2.

Amazon Fargate FIPS-140 Considerations

Consider the following when using FIPS-140 compliance on Fargate:

  • FIPS-140 compliance is only available in the Amazon GovCloud (US) Regions.

  • FIPS-140 compliance is turned off by default. You must turn it on.

  • Your tasks must use the following configuration for FIPS-140 compliance:

    • The operatingSystemFamily must be LINUX.

    • The cpuArchitecture must be X86_64.

    • The Fargate platform version must be 1.4.0 or later.

Use FIPS on Fargate

Use the following procedure to use FIPS-140 compliance on Fargate.

  1. Turn on FIPS-140 compliance. For more information, see Amazon Fargate Federal Information Processing Standard (FIPS-140) compliance.

  2. You can optionally use ECS Exec to run the following command to verify the FIPS-140 compliance status for a cluster.

    Replace my-cluster with the name of your cluster.

    A return value of "1" indicates that you are using FIPS.

    aws ecs execute-command --cluster cluster-name \ --interactive \ --command "cat /proc/sys/crypto/fips_enabled"

Use CloudTrail for Fargate FIPS-140 auditing

CloudTrail is turned on in your Amazon account when you create the account. When API and console activity occurs in Amazon ECS, that activity is recorded in a CloudTrail event along with other Amazon service events in Event history. You can view, search, and download recent events in your Amazon account. For more information, see Viewing Events with CloudTrail Event History.

For an ongoing record of events in your Amazon account, including events for Amazon ECS, create a trail which CloudTrail uses to deliver log files to an Amazon S3 bucket. By default, when you create a trail in the console, the trail applies to all regions. The trail logs events from all Regions in the Amazon partition and delivers the log files to the Amazon S3 bucket that you specify. Additionally, you can configure other Amazon services to further analyze and act upon the event data collected in CloudTrail logs. For more information, see Log Amazon ECS API calls using Amazon CloudTrail.

The following example shows a CloudTrail log entry that demonstrates the PutAccountSettingDefault API action:

{ "eventVersion": "1.08", "userIdentity": { "type": "IAMUser", "principalId": "AIDAIV5AJI5LXF5EXAMPLE", "arn": "arn:aws:iam::123456789012:user/jdoe", "accountId": "123456789012", "accessKeyId": "AKIAIPWIOFC3EXAMPLE", }, "eventTime": "2023-03-01T21:45:18Z", "eventSource": "ecs.amazonaws.com", "eventName": "PutAccountSettingDefault", "awsRegion": "us-gov-east-1", "sourceIPAddress": "52.94.133.131", "userAgent": "aws-cli/2.9.8 Python/3.9.11 Windows/10 exe/AMD64 prompt/off command/ecs.put-account-setting", "requestParameters": { "name": "fargateFIPSMode", "value": "enabled" }, "responseElements": { "setting": { "name": "fargateFIPSMode", "value": "enabled", "principalArn": "arn:aws:iam::123456789012:user/jdoe" } }, "requestID": "acdc731e-e506-447c-965d-f5f75EXAMPLE", "eventID": "6afced68-75cd-4d44-8076-0beEXAMPLE", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "123456789012", "eventCategory": "Management", "tlsDetails": { "tlsVersion": "TLSv1.2", "cipherSuite": "ECDHE-RSA-AES128-GCM-SHA256", "clientProvidedHostHeader": "ecs-fips.us-gov-east-1.amazonaws.com" } }