Revert to simple environment variable approach
- Remove backend pipeline deployment that was causing IAM issues - Remove complex secret configuration from backend.ts - Use simple environment variable approach from Amplify Console 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b03225cf76
commit
969839c840
2 changed files with 2 additions and 15 deletions
|
@ -1,10 +1,4 @@
|
||||||
version: 1
|
version: 1
|
||||||
backend:
|
|
||||||
phases:
|
|
||||||
build:
|
|
||||||
commands:
|
|
||||||
- npm ci --cache .npm
|
|
||||||
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
|
|
||||||
frontend:
|
frontend:
|
||||||
phases:
|
phases:
|
||||||
preBuild:
|
preBuild:
|
||||||
|
|
|
@ -1,18 +1,11 @@
|
||||||
import { defineBackend, secret } from '@aws-amplify/backend';
|
import { defineBackend } from '@aws-amplify/backend';
|
||||||
import { auth } from './auth/resource';
|
import { auth } from './auth/resource';
|
||||||
import { data } from './data/resource';
|
import { data } from './data/resource';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://docs.amplify.aws/react/build-a-backend/ to add storage, functions, and more
|
* @see https://docs.amplify.aws/react/build-a-backend/ to add storage, functions, and more
|
||||||
*/
|
*/
|
||||||
const backend = defineBackend({
|
defineBackend({
|
||||||
auth,
|
auth,
|
||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Define secrets that will be available as environment variables
|
|
||||||
backend.addOutput({
|
|
||||||
custom: {
|
|
||||||
YOUTUBE_API_KEY: secret('YOUTUBE_API_KEY'),
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue