Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ Uma aplicação frontend moderna desenvolvida com **Vue.js 3** e **Vuetify 3** q
- ✅ Configurar templates de email
- ✅ Monitor de bounces e complaints

### 🔒 Secrets Manager
- ✅ Listar todos os secrets
- ✅ Criar novos secrets
- ✅ Visualizar o conteúdo dos secrets
- ✅ Atualizar o conteúdo dos secrets
- ✅ Deletar os secrets
- ✅ Suporte à texto puro (plaintext) e chave-valor (JSON)
- ✅ Suporte à visualização de múltiplas versões

### 🎨 Interface do Usuário
- ✅ Design moderno e responsivo com Material Design 3
- ✅ Tema claro/escuro com persistência
Expand All @@ -125,7 +134,7 @@ Uma aplicação frontend moderna desenvolvida com **Vue.js 3** e **Vuetify 3** q

## 📋 Pré-requisitos

- Node.js 18+
- Node.js 18+
- npm ou yarn
- Docker e Docker Compose (para execução com containers)

Expand Down
26 changes: 19 additions & 7 deletions development-environment/localstack/start-localstack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ awslocal kinesis put-record \
# Create a simple Lambda function (if zip is available)
if command -v zip >/dev/null; then
echo "⚡ Creating sample Lambda function..."

# Create temporary directory for Lambda
mkdir -p /tmp/lambda-sample
cat > /tmp/lambda-sample/index.js << 'EOF'
exports.handler = async (event) => {
console.log('Event:', JSON.stringify(event, null, 2));

const response = {
statusCode: 200,
body: JSON.stringify({
Expand All @@ -136,31 +136,42 @@ exports.handler = async (event) => {
timestamp: new Date().toISOString()
})
};

return response;
};
EOF

# Create zip file
cd /tmp/lambda-sample
zip function.zip index.js

# Create Lambda function
awslocal lambda create-function \
--function-name sample-function \
--runtime nodejs18.x \
--role arn:aws:iam::000000000000:role/lambda-role \
--handler index.handler \
--zip-file fileb://function.zip

# Clean up
rm -rf /tmp/lambda-sample

echo "✅ Lambda function created successfully!"
else
echo "⚠️ Zip not available, skipping Lambda function creation"
fi

# Create Sample Secrets
awslocal secretsmanager create-secret \
--name sample-secret \
--description "Sample Secret" \
--secret-string "Sample Data"

awslocal secretsmanager create-secret \
--name sample-json-secret \
--description "Sample JSON Secret" \
--secret-string "{\"user\":\"my-user\",\"password\":\"my-password\"}"

echo ""
echo "🎉 Sample data setup complete!"
echo ""
Expand All @@ -172,6 +183,7 @@ echo " Lambda Functions: sample-function (if zip available)"
echo " S3 Buckets: sample-bucket-1, sample-bucket-2, images-bucket"
echo " SNS Topics: create-order-topic, order-created-topic"
echo " SQS Queues: sample-queue, orders-queue, notifications-queue"
echo " Secrets Manager: sample-secret, sample-json-secret"
echo ""
echo "🌐 Open the LocalStack Web interface at http://localhost:3000 to explore!"

Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: "3"
version: '3'

services:
localstack:
image: localstack/localstack:3.1
ports:
- "127.0.0.1:4510-4559:4510-4559" # external service port range
- "127.0.0.1:4566:4566" # LocalStack Edge Proxy
- '127.0.0.1:4510-4559:4510-4559' # external service port range
- '127.0.0.1:4566:4566' # LocalStack Edge Proxy
environment:
- DEBUG=${DEBUG:-0}
- SERVICES=sns,sqs,s3,ses,lambda,dynamodb,kinesis,kms
- SERVICES=sns,sqs,s3,ses,lambda,dynamodb,kinesis,kms,secretsmanager
- DISABLE_CORS_CHECKS=1
- DISABLE_CORS_HANDLERS=1
- SKIP_CORS_PREFLIGHT=1
Expand All @@ -18,8 +18,8 @@ services:
- EXTRA_CORS_ALLOWED_HEADERS=*
- EXTRA_CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,HEAD,OPTIONS
volumes:
- "${TMPDIR:-/tmp}/localstack:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- '${TMPDIR:-/tmp}/localstack:/var/lib/localstack'
- '/var/run/docker.sock:/var/run/docker.sock'
- ./development-environment/localstack:/etc/localstack/init/ready.d
networks:
- localstack-web-net
Expand All @@ -35,7 +35,7 @@ services:
- VITE_AWS_SECRET_ACCESS_KEY=test
container_name: localstack-web
ports:
- "3000:80"
- '3000:80'
depends_on:
- localstack
networks:
Expand Down
Loading