Skip to content
GitHubXDiscord

Project

The Project resource lets you manage AWS IoTSiteWise Projects and their configuration settings.

Create a basic IoTSiteWise project with the required properties and a common optional property.

import AWS from "alchemy/aws/control";
const iotProject = await AWS.IoTSiteWise.Project("basic-iot-project", {
ProjectName: "Manufacturing Overview",
PortalId: "portal-123456",
ProjectDescription: "A project to visualize manufacturing data.",
AssetIds: ["asset-1", "asset-2"]
});

Configure an IoTSiteWise project with additional tags for better organization and management.

const advancedIotProject = await AWS.IoTSiteWise.Project("advanced-iot-project", {
ProjectName: "Energy Management",
PortalId: "portal-123456",
ProjectDescription: "A project to monitor and manage energy consumption.",
AssetIds: ["asset-3", "asset-4"],
Tags: [
{ Key: "Environment", Value: "Production" },
{ Key: "Department", Value: "Energy" }
]
});

Create a project that adopts an existing resource instead of failing if the resource already exists.

const adoptExistingProject = await AWS.IoTSiteWise.Project("adopt-iot-project", {
ProjectName: "Water Treatment Monitoring",
PortalId: "portal-123456",
ProjectDescription: "A project to monitor water treatment processes.",
AssetIds: ["asset-5"],
adopt: true
});