AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


The AWS::Glue::Database resource specifies a logical grouping of tables in AWS Glue. For more information, see Defining a Database in Your Data Catalog and Database Structure in the AWS Glue Developer Guide.


To declare this entity in your AWS CloudFormation template, use the following syntax:


{ "Type" : "AWS::Glue::Database", "Properties" : { "CatalogId" : String, "DatabaseInput" : DatabaseInput } }


Type: AWS::Glue::Database Properties: CatalogId: String DatabaseInput: DatabaseInput



The AWS account ID for the account in which to create the catalog object.


To specify the account ID, you can use the Ref intrinsic function with the AWS::AccountId pseudo parameter. For example: !Ref AWS::AccountId

Required: Yes

Type: String

Update requires: Replacement


The metadata for the database.

Required: Yes

Type: DatabaseInput

Update requires: No interruption

Return Values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the database name.

For more information about using the Ref function, see Ref.