> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Live events

Live events keep your Port catalog up to date between scheduled resyncs. AWS records API calls as CloudTrail management events, EventBridge matches supported API calls, and forwards them to Port at {LiveEventsUrl}/integration/webhook. The integration authenticates each request with the live events API key and updates the matching catalog entity.

Live events are deployed with a separate CloudFormation stack from the integration IAM stack. They complement full resyncs but do not replace reconciliation. For how live events interact with resyncs, see Sync interactions.

CloudTrail required

Ensure CloudTrail is logging management events in the accounts and regions where you deploy live events. Without CloudTrail events, EventBridge has nothing to forward.

To deploy the live events CloudFormation stack, follow the Live events (optional) step in the installation wizard.

Supported resource kinds​

The integration forwards CloudTrail management events for these resource kinds:

Resource kindLive events
AWS::S3::BucketCreate and delete
AWS::Lambda::FunctionCreate, update, and delete
AWS::DynamoDB::TableCreate, update, and delete
AWS::RDS::DBInstanceCreate, update, and delete
AWS::RDS::DBClusterCreate, update, and delete
AWS::ECR::RepositoryCreate and delete
AWS::ECS::ClusterCreate, update, and delete
AWS::ECS::ServiceCreate, update, and delete
AWS::ECS::TaskDefinitionRegister and deregister
AWS::EKS::ClusterCreate, update, and delete
AWS::EC2::InstanceLaunch and terminate
AWS::EC2::VolumeCreate, modify, and delete
AWS::ElastiCache::ClusterCreate, modify, and delete
AWS::MemoryDB::UserCreate, update, and delete
AWS::CodeBuild::ProjectCreate, update, and delete
AWS::CodeBuild::BuildRunStart, stop, and retry
AWS::CodeDeploy::DeploymentCreate and stop
AWS::CodePipeline::PipelineCreate, update, and delete
AWS::CodePipeline::PipelineExecutionStart and stop
AWS::SNS::TopicCreate, update, and delete
AWS::SQS::QueueCreate, update, and delete
AWS::SES::EmailIdentityCreate, update, and delete
AWS::SES::ConfigurationSetCreate, update, and delete

Unsupported resource kinds​

The following kinds are ingested during resyncs but do not receive live events today:

Resource kindReason
AWS::Account::InfoAccount metadata is synced from account-level APIs, not from regional CloudTrail CRUD events.
AWS::Organizations::AccountOrganization account lifecycle events are not mapped to live events yet.
AWS::MSK::ClusterSame CloudTrail events also map to AWS::MSK::ServerlessCluster, so the kind cannot be identified reliably.
AWS::MSK::ServerlessClusterSame CloudTrail events also map to AWS::MSK::Cluster, so the kind cannot be identified reliably.
AWS::CodeDeploy::ApplicationCloudTrail exposes mutable application names, not stable ARNs.
AWS::CodeDeploy::DeploymentGroupCloudTrail exposes mutable group names, not stable ARNs.
AWS::CodePipeline::StageDerived from pipeline definitions; CloudTrail has no per-stage CRUD events.
AWS::CodePipeline::ActionDerived from pipeline definitions; CloudTrail has no per-action CRUD events.
AWS::CodePipeline::ActionExecutionNo CloudTrail API events; lifecycle updates use CodePipeline EventBridge state-change events not supported by live events yet.

Custom Cloud Control kinds​

Built-in resource kinds use EventBridge rules that ship with the main live events stack. The integration maps each CloudTrail management event to a known kind and identifier.

Custom kinds are Cloud Control types you add to the integration mapping (any type listed in the AWS Cloud Control API supported resources guide). They sync during resyncs through Cloud Control ListResources and GetResource, but they are not in the built-in CloudTrail mapping. To receive live events for a custom kind, deploy an additional CloudFormation stack that creates an EventBridge rule with an input transformer. The rule forwards matching CloudTrail events to the same API destination as the main live events stack.

On each event, the integration receives a flattened JSON body. It loads the resource with Cloud Control using the resource_type and identifier from the payload. If the resource no longer exists (for example, after a delete CloudTrail event), Port removes the matching catalog entity.

You choose the EventBridge pattern

Unlike built-in kinds, Port does not ship a fixed CloudTrail mapping for custom kinds. You must pick EventSource, EventNames, and IdentifierPath so events resolve to the same identifier your Port mapping uses during resync. Wrong paths cause skipped or incorrect updates.

Prerequisites​

  • The main live events CloudFormation stack is deployed in the account (and regions) you care about. Each custom-kind stack reuses the ApiDestinationArn output from the live events region stack in the same account and region.
  • The custom kind is configured in your Port integration mapping, with the kind set to the CloudFormation type name (for example, AWS::IAM::Role).
  • CloudTrail logs management events in that account and region.

Deploy the custom-kind stack​

Deploy one stack per custom kind in every account and region where you want live events for that kind (the same scope as your live events region stacks).

  1. In the AWS account and region, open the Outputs tab of the live events region nested stack and copy ApiDestinationArn.

  2. In the CloudFormation console, create a stack from the custom-kind template:

    Deploy the custom-kind live events stack ↗
  3. Set the stack parameters. ApiDestinationArn must come from the live events region stack in the same account and region. ResourceType must match the custom kind in Port.

All stack parameters (click to expand)
ParameterDefaultDescription
OrgId—Your Port organization ID. Applied as a tag on stack resources for operations; use the same value as your main live events stack if you rely on those tags.
IntegrationIdentifier—Integration identifier. Applied as a tag and should match the value in Port; use the same value as your main live events stack for consistency.
ApiDestinationArn—ApiDestinationArn output from the live events region stack in the same AWS account and region as this stack.
ResourceType—CloudFormation type name for the custom kind (for example, AWS::IAM::Role). Must match the kind in your Port integration mapping.
EventSource—EventBridge source for the service's CloudTrail events (for example, aws.iam).
EventNames—Comma-separated CloudTrail eventName values for create, update, and delete operations on this resource type.
IdentifierPath—JSONPath in the CloudTrail event to the resource's Cloud Control primary identifier (for example, $.detail.requestParameters.roleName). Must resolve for every name in EventNames.

Example: AWS::IAM::Role​

ParameterExample value
ResourceTypeAWS::IAM::Role
EventSourceaws.iam
EventNamesCreateRole, UpdateRole, DeleteRole
IdentifierPath$.detail.requestParameters.roleName

After a matching CloudTrail event, EventBridge sends a body shaped like:

{
"resource_type": "AWS::IAM::Role",
"identifier": "my-role",
"accountId": "111122223333",
"awsRegion": "us-east-1",
"eventName": "CreateRole"
}

To discover EventSource, EventNames, and IdentifierPath for another type, trigger a test change in AWS, find the event in CloudTrail or EventBridge, and confirm the JSONPath resolves to the same identifier Cloud Control uses (see the CloudFormation type reference for your resource).

Multi-account deployments​

In organization setups, deploy the custom-kind stack in each member account and region where the main live events region stack runs, using that region stack's ApiDestinationArn in the same account and region.

Troubleshooting​

Events not appearing in Port

  • Confirm the live events API key in Port matches the LiveEventsApiKey CloudFormation parameter.
  • Verify CloudTrail is enabled and logging management events in the account and region where you changed the resource.
  • For built-in kinds, check the supported list. Unsupported kinds update only during resyncs. Custom kinds need a custom-kind stack and are not listed in the built-in table.
  • For multi-account setups, confirm StackSet operations succeeded in the StackSets console.
  • For self-hosted ECS or EC2 setups, confirm EnableLiveEvents is true on the Ocean stack and that your public HTTPS URL routes to Ocean on port 8000.
  • For self-hosted IRSA or IAM User setups, confirm OCEAN__BASE_URL and OCEAN__INTEGRATION__CONFIG__LIVE_EVENTS_API_KEY are set and ingress routes HTTPS traffic to /integration/webhook.
  • For custom Cloud Control kinds, confirm the custom-kind stack uses the correct ApiDestinationArn, ResourceType, and IdentifierPath, and that the kind exists in your Port mapping.

Stack creation failed

  • Insufficient IAM permissions: Ensure your AWS user can create CloudFormation stacks, IAM roles, EventBridge connections, and StackSets (for multi-account).
  • Regions not enabled: Live events deploy only to enabled AWS regions. Enable the region in Account settings or remove it from the Regions parameter.
  • Multi-account regions missing: The Regions parameter is required for multi-account live events stacks.