Stack to create a table with DynamoDB in AWS

Stack to create a table with DynamoDB in AWS

Cloudformation:

      
          Description: Table for create an user
          Parameters:
            Stage:
              Description: Environment Name
              Type: String

            DynamodbTableName:
              Description: Table name
              Type: String

          Resources:
            SATContractsDBTable:
              Type: AWS::DynamoDB::Table
              Properties:
                TableName: !Sub "${DynamodbTableName}"
                BillingMode: PAY_PER_REQUEST
                AttributeDefinitions:
                  - AttributeName: id
                    AttributeType: N
                  - AttributeName: username
                    AttributeType: S
                KeySchema:
                  - AttributeName: id
                    KeyType: HASH
                  - AttributeName: username
                    KeyType: RANGE
                Tags:
                  - 
                    Key: "key"
                    Value: "value"
                  - 
                    Key: "environment"
                    Value: !Ref Stage
      
  

Comentarios

Entradas más populares de este blog

Ejemplo Log4j 2 en JAVA | Log4j 2 en Springboot | Configuración Log4j 2 | Log4j 2 in SpringBoot| Example Log4j 2 in SpringBoot | Configuring Log4j 2

Python: Inyección de dependencias

GOlang con Docker | GOlang with Docker | GO con Docker | GO with Docker