Registering a blueprint in Amazon Glue
After the Amazon Glue developer has coded the blueprint and uploaded a ZIP archive to Amazon Simple Storage Service (Amazon S3), an Amazon Glue administrator must register the blueprint. Registering the blueprint makes it available for use.
When you register a blueprint, Amazon Glue copies the blueprint archive to a reserved Amazon S3 location. You can then delete the archive from the upload location.
To register a blueprint, you need read permissions on the Amazon S3 location that contains the
uploaded archive. You also need the Amazon Identity and Access Management (IAM) permission
glue:CreateBlueprint
. For the suggested permissions for an Amazon Glue administrator
who must register, view, and maintain blueprints, see Amazon Glue administrator permissions for
blueprints.
You can register a blueprint by using the Amazon Glue console, Amazon Glue API, or Amazon Command Line Interface (Amazon CLI).
To register a blueprint (console)
-
Ensure that you have read permissions (
s3:GetObject
) on the blueprint ZIP archive in Amazon S3. -
Open the Amazon Glue console at https://console.amazonaws.cn/glue/
. Sign in as a user that has permissions to register a blueprint. Switch to the same Amazon Region as the Amazon S3 bucket that contains the blueprint ZIP archive.
-
In the navigation pane, choose blueprints. Then on the blueprints page, choose Add blueprint.
-
Enter a blueprint name and optional description.
-
For ZIP archive location (S3), enter the Amazon S3 path of the uploaded blueprint ZIP archive. Include the archive file name in the path and begin the path with
s3://
. -
(Optional) Add tag one or more tags.
-
Choose Add blueprint.
The blueprints page returns and shows that the blueprint status is
CREATING
. Choose the refresh button until the status changes toACTIVE
orFAILED
. -
If the status is
FAILED
, select the blueprint, and on the Actions menu, choose View.The detail page shows the reason for the failure. If the error message is
"Unable to access object at location..."
or"Access denied on object at location..."
, review the following requirements:-
The user that you are signed in as must have read permission on the blueprint ZIP archive in Amazon S3.
-
The Amazon S3 bucket that contains the ZIP archive must have a bucket policy that grants read permission on the object to your Amazon account ID. For more information, see Developing blueprints in Amazon Glue.
-
The Amazon S3 bucket that you're using must be in the same Region as the Region that you're signed into on the console.
-
-
Ensure that data analysts have permissions on the blueprint.
The suggested IAM policy for data analysts is shown in Data analyst permissions for blueprints. This policy grants
glue:GetBlueprint
on any resource. If your policy is more fine-grained at the resource level, then grant data analysts permissions on this newly created resource.
To register a blueprint (Amazon CLI)
-
Enter the following command.
aws glue create-blueprint --name
<blueprint-name>
[--description<description>
] --blueprint-location s3://<s3-path>
/<archive-filename>
-
Enter the following command to check the blueprint status. Repeat the command until the status goes to
ACTIVE
orFAILED
.aws glue get-blueprint --name
<blueprint-name>
If the status is
FAILED
and the error message is"Unable to access object at location..."
or"Access denied on object at location..."
, review the following requirements:-
The user that you are signed in as must have read permission on the blueprint ZIP archive in Amazon S3.
-
The Amazon S3 bucket containing the ZIP archive must have a bucket policy that grants read permission on the object to your Amazon account ID. For more information, see Publishing a blueprint.
-
The Amazon S3 bucket that you're using must be in the same Region as the Region that you're signed into on the console.
-