Skip to content
GitHubXDiscord

UsageProfile

The UsageProfile resource allows you to manage AWS Glue UsageProfiles that define the usage metrics and configurations for your Glue jobs and crawlers.

Create a basic UsageProfile with a name and description:

import AWS from "alchemy/aws/control";
const usageProfile = await AWS.Glue.UsageProfile("basicUsageProfile", {
name: "DataProcessingProfile",
description: "Profile for managing data processing jobs."
});

Configure a UsageProfile with detailed settings and tags:

import AWS from "alchemy/aws/control";
const advancedUsageProfile = await AWS.Glue.UsageProfile("advancedUsageProfile", {
name: "ETLProcessingProfile",
description: "Profile for advanced ETL processing.",
configuration: {
maxConcurrentRuns: 5,
timeout: 60 // in minutes
},
tags: [
{ key: "Environment", value: "Production" },
{ key: "Department", value: "DataEngineering" }
]
});

Adopt an existing UsageProfile if it already exists instead of failing:

import AWS from "alchemy/aws/control";
const adoptedUsageProfile = await AWS.Glue.UsageProfile("adoptedUsageProfile", {
name: "ExistingDataProfile",
description: "Adopt existing UsageProfile for data operations.",
adopt: true
});

Create a UsageProfile that specifies custom configuration settings:

import AWS from "alchemy/aws/control";
const configuredUsageProfile = await AWS.Glue.UsageProfile("configuredUsageProfile", {
name: "CustomConfigProfile",
description: "Profile with custom configuration for Glue jobs.",
configuration: {
maxRetries: 3,
workerType: "G.2X",
numberOfWorkers: 10
},
tags: [
{ key: "Project", value: "DataPipeline" }
]
});