Skip to main content
Latest
File
AWSTemplateFormatVersion: 2010-09-09Description: Setup for testing dynamodb in the AWS cloudParameters: TableName: Type: String Description: Name of the DynamoDB testing table Default: testing_tableResources: Table: Type: AWS::DynamoDB::Table Properties: TableName: !Ref TableName KeySchema: - KeyType: HASH AttributeName: id AttributeDefinitions: - AttributeName: id AttributeType: S ProvisionedThroughput: ReadCapacityUnits: 10 WriteCapacityUnits: 10 User: Type: AWS::IAM::User Properties: Policies: - PolicyName: DynamoDBTestingPolicy PolicyDocument: Version: 2012-10-17 Statement: - Sid: AllowDynamoDBFullAccess Effect: Allow Action: dynamodb:* Resource: !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/* AccessKey: Type: AWS::IAM::AccessKey Properties: Status: Active UserName: !Ref UserOutputs: TableName: Description: Name of the DynamoDB testing table Value: !Ref TableName UserArn: Description: IAM user with full access to DynamoDB Value: !GetAtt User.Arn UserAccessKeyId: Description: Access key id of the IAM user Value: !Ref AccessKey UserSecretAccessKey: Description: Secret access key of the IAM user Value: !GetAtt AccessKey.SecretAccessKey