Provides AWS Secrets Manager patterns for AWS SDK Java 2.x: secret retrieval, caching, rotation-aware access, Spring Boot integration. Use for managing secrets in Java services, replacing hardcoded credentials.
From developer-kit-javanpx claudepluginhub giuseppe-trisciuoglio/developer-kit --plugin developer-kit-javaThis skill is limited to using the following tools:
assets/templates/SecretsManagerConfigTemplate.javareferences/api-reference.mdreferences/caching-guide.mdreferences/spring-boot-integration.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Use this skill to manage application secrets with AWS Secrets Manager from Java services.
It focuses on the operational flow that matters in production:
Keep large API notes and extended setup details in the bundled references.
Use this skill when:
AWSCURRENT and AWSPENDINGTypical trigger phrases include java secrets manager, spring boot secret, aws secret cache, load db credentials from secrets manager, and rotate secret.
Decide:
Prefer JSON secrets for multi-field credentials such as database connection details.
Use a single SecretsManagerClient with explicit region and the default credential provider chain unless the environment requires something more specific.
Keep client creation in configuration code, not in business services.
At the integration boundary:
GetSecretValueRequestsecretString() or include it in thrown exception messagesUse caching when:
Document cache TTL expectations clearly, especially if the secret rotates.
If the secret rotates:
AWSPENDING during verification workflowsBefore shipping:
@Configuration
public class SecretsConfiguration {
@Bean
SecretsManagerClient secretsManagerClient() {
return SecretsManagerClient.builder()
.region(Region.of("eu-south-2"))
.credentialsProvider(DefaultCredentialsProvider.create())
.build();
}
}
@Service
public class SecretsService {
private final SecretsManagerClient client;
private final ObjectMapper objectMapper;
public SecretsService(SecretsManagerClient client, ObjectMapper objectMapper) {
this.client = client;
this.objectMapper = objectMapper;
}
public DatabaseSecret loadDatabaseSecret(String secretId) throws JsonProcessingException {
GetSecretValueResponse response = client.getSecretValue(
GetSecretValueRequest.builder().secretId(secretId).build()
);
return objectMapper.readValue(response.secretString(), DatabaseSecret.class);
}
}
public class CachedSecretsService {
private final SecretCache cache;
public CachedSecretsService(SecretsManagerClient client) {
this.cache = new SecretCache(client);
}
public String apiToken(String secretId) {
return cache.getSecretString(secretId);
}
}
Use this pattern only when the application can tolerate the chosen cache refresh behavior.
references/api-reference.mdreferences/caching-guide.mdreferences/spring-boot-integration.mdaws-sdk-java-v2-coreaws-sdk-java-v2-kmsspring-boot-dependency-injection