Skip to content

Commit

Permalink
Merge pull request #331 from B-urb/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
B-urb authored Dec 27, 2024
2 parents 764666f + 1f85a52 commit a0f157a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,30 @@ env:
CI: true

jobs:
pulumi-deploy:
pulumi-deploy-dev:
environment: dev
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- run: npm install
- name: Decode kubeconfig
run: |
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $HOME/.kube/config
cat $HOME/.kube/config
shell: bash
- name: Deploy with Pulumi
uses: pulumi/actions@v6
with:
command: up
stack-name: openstack
work-dir: flux-operator
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
versionTag: ${{ github.head_ref || github.ref_name }}
pulumi-deploy-prod:
environment: prod
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions l2/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export function createS3Bucket(bucketName: string): S3BucketCredentials {
const bucket = new aws.s3.Bucket(bucketName, {
bucketPrefix: bucketName,
acl: "private",
}, { provider: awsProvider }); // Use the singleton provider
}, { provider: awsProvider, protect: true }); // Use the singleton provider

const user = new aws.iam.User(`${bucketName}-user`, {}, { provider: awsProvider });
const user = new aws.iam.User(`${bucketName}-user`, {}, { provider: awsProvider, protect: true });

const accessKey = new aws.iam.AccessKey(`${bucketName}-accessKey`, {
user: user.name,
Expand Down

0 comments on commit a0f157a

Please sign in to comment.