adding latest
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
AWSTemplateFormatVersion: 2010-09-09
|
||||
Description: S3 bucket for static assets for Strapi deployment.
|
||||
Parameters:
|
||||
TestParameter:
|
||||
Type: String
|
||||
Resources:
|
||||
ELBExampleBucket:
|
||||
Type: "AWS::S3::Bucket"
|
||||
|
||||
File diff suppressed because one or more lines are too long
9
package-lock.json
generated
9
package-lock.json
generated
@@ -9882,13 +9882,12 @@
|
||||
"integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug=="
|
||||
},
|
||||
"sqlite3": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-4.1.1.tgz",
|
||||
"integrity": "sha512-CvT5XY+MWnn0HkbwVKJAyWEMfzpAPwnTiB3TobA5Mri44SrTovmmh499NPQP+gatkeOipqPlBLel7rn4E/PCQg==",
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-4.2.0.tgz",
|
||||
"integrity": "sha512-roEOz41hxui2Q7uYnWsjMOTry6TcNUNmp8audCx18gF10P2NknwdpF+E+HKvz/F2NvPKGGBF4NGc+ZPQ+AABwg==",
|
||||
"requires": {
|
||||
"nan": "^2.12.1",
|
||||
"node-pre-gyp": "^0.11.0",
|
||||
"request": "^2.87.0"
|
||||
"node-pre-gyp": "^0.11.0"
|
||||
}
|
||||
},
|
||||
"sshpk": {
|
||||
|
||||
@@ -1,20 +1,9 @@
|
||||
# Running notes
|
||||
|
||||
create an elb with --single and --database
|
||||
|
||||
redeploy with username option set, does it change?
|
||||
|
||||
Does strapi work with a databse set in production mode?
|
||||
|
||||
SSH into EC2 - check if its using sqlite
|
||||
|
||||
deocument that the db has to be done from cli arg, but the configs can be done via files.
|
||||
|
||||
SSL? https://levelup.gitconnected.com/beginners-guide-to-aws-beanstalk-using-node-js-d061bb4b8755
|
||||
|
||||
Add postgres to strapi
|
||||
Add the S3 bucket to strapi
|
||||
|
||||
If doesnt work, try installing yarn in the ELB instance
|
||||
|
||||
Create seperate sql database + VPC rules:
|
||||
@@ -174,6 +163,22 @@ An example is:
|
||||
}
|
||||
```
|
||||
|
||||
## Strapi in git
|
||||
|
||||
To have a strapi project in github you should remove the:
|
||||
|
||||
- `./build`
|
||||
- `./node_modules`
|
||||
|
||||
folders.
|
||||
|
||||
When cloning from the repo you should then do a:
|
||||
|
||||
- `NODE_ENV=development npm install`
|
||||
- `NODE_ENV=development npm run build`
|
||||
|
||||
You can then run Strapi with `npm run develop` or `NODE_ENV=production npm run start`.
|
||||
|
||||
## Cloudformation
|
||||
|
||||
<https://adamtheautomator.com/aws-cli-cloudformation/> (example of deploying an S3 bucket with static site `index.html`.)
|
||||
@@ -219,6 +224,10 @@ Using stacks means AWS will treat all resources as a single unit. They must all
|
||||
|
||||
`aws --profile admin cloudformation deploy --template-file ./01-stack-storage.yaml --stack-name strapi-s3`
|
||||
|
||||
You can pass paramter values in with `--paramter-overrides KEY=VALUE`:
|
||||
|
||||
`--parameter-overrides TestParameter="some test string"`
|
||||
|
||||
#### Destroy a stack
|
||||
|
||||
`aws --profile admin cloudformation delete-stack --stack-name strapi-s3`
|
||||
@@ -236,7 +245,7 @@ Suggested tags for all AWS resources are:
|
||||
| environment | environment resource belongs to | `dev`, `prod` |
|
||||
| deployment | AWS tool used for deployment | `cloudformation`, `elb` |
|
||||
|
||||
### Cloudformation
|
||||
### Cloudformation default tags
|
||||
|
||||
For Cloudformation resources the following tags get applied automatically:
|
||||
|
||||
|
||||
@@ -9,3 +9,7 @@ When creating an ELB instance with `--single` and `--database` the following is
|
||||
- RDS database
|
||||
|
||||
Is the security group created without a databse? (probably yes...)
|
||||
|
||||
## Creating Database + VPC + Subnets in Cloudformation
|
||||
|
||||
Template from AWS showing cross-stack referencing and creating and referencing a VPC: <https://s3.amazonaws.com/cloudformation-examples/user-guide/cross-stack/SampleNetworkCrossStack.template>.
|
||||
|
||||
Reference in New Issue
Block a user