@granite-js/pulumi-aws 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # @granite-js/pulumi-aws
2
+
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - ed4d356: changeset
8
+
9
+ ## 0.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 0ae09b7: include preset shared
14
+ - 0ae09b7: deploy guide
15
+ - 0ae09b7: guide
16
+ - 0ae09b7: showcase
17
+ - 0ae09b7: counter
18
+ - 0ae09b7: initialize aws infra as code
package/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # @granite-js/pulumi-aws
2
+
3
+ A Pulumi package for managing React Native CDN infrastructure on AWS.
4
+
5
+ ## Installation
6
+
7
+ Follow the official Pulumi installation guide to install the Pulumi CLI:
8
+
9
+ * [Pulumi Installation Guide](https://www.pulumi.com/docs/iac/download-install/)
10
+
11
+
12
+ ## Pulumi Configuration
13
+
14
+ ```bash
15
+ pulumi new aws-typescript
16
+ ```
17
+
18
+ Then, install the `@granite-js/pulumi-aws` package and dependencies:
19
+
20
+ ```bash
21
+ npm install @granite-js/pulumi-aws
22
+ # or
23
+ yarn add @granite-js/pulumi-aws
24
+ # or
25
+ pnpm add @granite-js/pulumi-aws
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ To use the `ReactNativeBundleCDN` component, import it into your Pulumi program and instantiate it with the required arguments:
31
+
32
+ ```typescript
33
+ import * as pulumi from '@pulumi/pulumi';
34
+ import * as aws from '@pulumi/aws';
35
+ import { ReactNativeBundleCDN } from '@granite-js/pulumi-aws';
36
+
37
+ const config = new pulumi.Config();
38
+
39
+ const reactNativeCdn = new ReactNativeBundleCDN('myReactNativeBundleCDN', {
40
+ bucketName: config.require('bucketName'),
41
+ region: config.require('region')
42
+ });
43
+
44
+ // Print to CLi
45
+ export const url = cdn.cloudfrontDomain;
46
+ ```
47
+
48
+ Ensure your configuration variables (`bucketName` and `region`) are set in the Pulumi configuration:
49
+
50
+ ```bash
51
+ pulumi config set bucketName your-bucket-name
52
+ pulumi config set region us-west-2
53
+ ```
54
+
55
+
56
+ ## AWS Credentials Setup
57
+
58
+ Configure your AWS credentials for Pulumi by exporting your AWS credentials as environment variables:
59
+
60
+ ```bash
61
+ export AWS_ACCESS_KEY_ID="your-access-key-id"
62
+ export AWS_SECRET_ACCESS_KEY="your-secret-access-key"
63
+ export AWS_REGION="your-region"
64
+ ```
65
+
66
+ Alternatively, configure your AWS credentials using the AWS CLI:
67
+
68
+ ```bash
69
+ aws configure
70
+ ```
71
+
72
+ ## Deploying with Pulumi
73
+
74
+ To deploy your infrastructure, run:
75
+
76
+ ```bash
77
+ pulumi up
78
+ ```
79
+
80
+ Review the changes that Pulumi proposes, then confirm deployment. Pulumi will provision your React Native CDN infrastructure on AWS.
81
+
82
+ ## Cleaning up
83
+
84
+ To remove the deployed resources, use:
85
+
86
+ ```bash
87
+ pulumi destroy
88
+ ```
89
+
90
+ Review and confirm the destruction to remove all resources managed by your Pulumi stack.