Chapter 61 · Amazon Elasticache
Subchapter 61.51
references/shared-foundation/attribution.mdMarkdown4 KBView on GitHub
How to identify and track resources created or managed by the ElastiCache skill. This file is loaded on demand when generating CLI commands, SDK code, or IaC templates (see SKILL.md “Reference loading”).
Every AWS API call the skill generates – whether via CLI, SDK, or script – must include the user-agent identifier. Every resource the skill creates must carry the attribution tags defined below. These two mechanisms work together: user-agent covers ephemeral actions (describe, modify), tags cover persistent resources.
AWSSkill-ElastiCacheThe AWS_SDK_UA_APP_ID environment variable makes all SDK and CLI calls include the skill identifier in the user-agent string.
Environment variable:
AWS_SDK_UA_APP_ID=AWSSkill-ElastiCacheAWS_SDK_UA_APP_ID and appends it to the User-Agent HTTP header on every API call.userAgent field in every event log entry.AWS_SDK_UA_APP_ID environment variable or the SDK user-agent config. See “Where the Agent Must Set It” below.CLI commands: Prefix any aws elasticache command block with export AWS_SDK_UA_APP_ID=AWSSkill-ElastiCache.
SDK code (control-plane): Set the app ID on the client. The config key varies by SDK:
botocore.config.Config(user_agent_appid="AWSSkill-ElastiCache")AWS_SDK_UA_APP_ID=AWSSkill-ElastiCache environment variable (preferred), or programmatically via new ElastiCacheClient({ appId: "AWSSkill-ElastiCache" }).overrideConfiguration(ClientOverrideConfiguration.builder().appId("AWSSkill-ElastiCache").build()) or JVM system property -Dsdk.ua.appId=AWSSkill-ElastiCache (Note: the Kotlin SDK uses -Daws.userAgentAppId instead). Note: Java SDK v2 does not support the AWS_SDK_UA_APP_ID environment variable.config.WithAppID("AWSSkill-ElastiCache")Scripts: Bundled scripts that use boto3 should include the user_agent_appid config when constructing clients.
AWS_SDK_UA_APP_ID to data-plane client code.Tag schema (managed_by, skill, skill_version, created_by, generation_model) and examples are in setup/create-secure-cache.md. This section covers only the gotchas.
If the target AWS account uses AWS Organizations tag policies that restrict allowed tag keys, the skill’s default tags (managed_by, skill, skill_version, created_by, generation_model) may be rejected. If tag application fails due to an Organization tag policy, remove the conflicting tags and proceed. Attribution tags are best-effort, not a gate – cache creation should never fail because of attribution.