Tūhonoa tētahi peke AWS S3 ki tō rōpū - (Team web app)
Ko te mahi a S3 Bucket Storage
Tūhonoa tō ake peke S3 o Amazon Web Services (AWS) kia taea ai e ngā mema o te rōpū te uta kōnae matawhenua mai i reira me te penapena mapi ki reira. Ka noho tonu ngā kōnae ki tō peke. Ko ngā kaipupuri me ngā kaiwhakahaere anake ka taea te whakarite i tēnei.
Ka tuwhera koe i tēnei whārangi mai i te wāhanga S3 Bucket o te tatau o te rōpū.
Whakaurua ngā taipitopito o te peke
- Bucket Name (me whai). Te ingoa o tō peke S3.
- Region (me whai). Tīpakohia te rohe AWS e noho ana tō peke.
-
Folder Prefix (kōwhiringa). He tāpiritanga ingoa, he kōpaki rānei mō ngā kōnae katoa o ScribbleMaps, pērā i te
maps/i tedata/rānei.
Tīpakohia tētahi tikanga whakamana
Kōwhiria te tikanga e hainatia ai e ScribbleMaps tō peke.
IAM Role (e taunakitia ana)
Ka whakamahi te IAM Role i ngā taipitopito whakauru taupua mā AWS STS. Kāore he kī pūmau hei whakahaere, nō reira he haumaru ake.
- Tāruatia te External ID mā te pātene tāruatanga. Me whai koe i tēnei mō te kaupapahere whakawhirinaki o te role.
- Pāwhiria te Setup Instructions mō ngā hīkoi katoa. Hei whakarāpopototanga: - I te AWS IAM Console, waihangatia he role, ka kōwhiri i te Another AWS account hei hinonga whakawhirinaki. - Whakaurua te ID Kaute AWS o ScribbleMaps e whakaaturia ana i ngā tohutohu. - Tohua te Require external ID ka whakapiri i te External ID mai i tēnei whārangi. - Tāpirihia he kaupapahere e whakaae ana ki te
s3:GetObject, tes3:PutObject, tes3:DeleteObject, me tes3:ListBucketi runga i tō peke. - Whakapirihia te ARN o te role ki te āpure Role ARN.
Kāore te IAM Role e watea mō ngā rohe AWS GovCloud.
Access Keys
Ka whakamahi te Access Keys i tētahi Access Key ID me tētahi Secret Access Key o AWS. Me whakamahi tēnei tikanga mō ngā rohe AWS GovCloud.
- Whakaurua tō Access Key ID.
- Whakaurua tō Secret Access Key. Ka penapena whakamuna tēnei. Mehemea kua penapenahia kētia he kī, waiho kau tēnei āpure kia pupuri i taua kī, tāuru rānei i tētahi uara hou hei whakakapi.
Penapena me te whakamātau
- Pāwhiria te Save Settings.
- Pāwhiria te Test Connection hei whakapūmau ka taea e ScribbleMaps te tae atu ki te peke. Ka mahi tēnei pātene i muri i te whirihora o te peke.
- Ina oti te whakarite, whakamahia te whakawhiti S3 Storage hei whakahohe, hei whakakore rānei i te whakaurunga mō tō rōpū.
Whirihora CORS e hiahiatia ana
Me whai ture CORS tō peke kia taea ai e te tirotiro-ipurangi te tuku ki reira. Tāpirihia tēnei ki ngā tautuhinga CORS o te peke:
[{"AllowedOrigins": [
"https://www.scribblemaps.com",
"https://team.scribblemaps.com",
"https://widgets.scribblemaps.com"
],
"AllowedMethods": ["GET", "PUT", "DELETE", "HEAD"],
"AllowedHeaders": ["*"],
"MaxAgeSeconds": 3000
}]
Mehemea kāore e taea e ngā mema o te rōpū te penapena, te uta rānei i ngā kōnae i muri i te whakarite, he mea pea kei te hiahia tonu te peke i tēnei ture CORS.
Whakahoutia whakamutunga