PageSourceSearch

https://opszero.com/assets/js/b7837d76.4d0ca692.js

js opszero.com collected 2026-09-25 18:34:55 UTC 5,793 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkopszero||=[]).push([[1707],{4012(n,i,e){e.r(i),e.d(i,{assets:()=>d,contentTitle:()=>l,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"finops/aws/cloudfront_distribution","title":"AWS CloudFront Distribution Documentation","description":"Overview","source":"@site/docs/finops/aws/cloudfront_distribution.md","sourceDirName":"finops/aws","slug":"/finops/aws/cloudfront_distribution","permalink":"/docs/finops/aws/cloudfront_distribution","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"sop","previous":{"title":"FinOps","permalink":"/docs/finops/"},"next":{"title":"AWS S3","permalink":"/docs/finops/aws/s3"}}');var o=e(74848),t=e(28453);const r={},l="AWS CloudFront Distribution Documentation",d={},c=[{value:"Overview",id:"overview",level:2},{value:"How DiscountCloud Uses AWS CloudFront",id:"how-discountcloud-uses-aws-cloudfront",level:2},{value:"AwsCloudfrontDistribution Model Fields",id:"awscloudfrontdistribution-model-fields",level:2},{value:"Example Usage in Django Admin",id:"example-usage-in-django-admin",level:2},{value:"References",id:"references",level:2}];function a(n){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"aws-cloudfront-distribution-documentation",children:"AWS CloudFront Distribution Documentation"})}),"\n",(0,o.jsx)(i.h2,{id:"overview",children:"Overview"}),"\n",(0,o.jsx)(i.p,{children:"AWS CloudFront is a content delivery network (CDN) provided by Amazon Web Services.\nIt delivers data, videos, applications, and APIs to customers globally with low latency and high transfer speeds."}),"\n",(0,o.jsx)(i.p,{children:"Key features:"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"Distributes content via edge locations worldwide"}),"\n",(0,o.jsx)(i.li,{children:"Low latency and high transfer speed"}),"\n",(0,o.jsx)(i.li,{children:"Supports caching and custom origin servers"}),"\n",(0,o.jsx)(i.li,{children:"Integration with AWS services (S3, EC2, etc.)"}),"\n"]}),"\n",(0,o.jsx)(i.h2,{id:"how-discountcloud-uses-aws-cloudfront",children:"How DiscountCloud Uses AWS CloudFront"}),"\n",(0,o.jsxs)(i.p,{children:["In DiscountCloud, we track AWS CloudFront distributions to manage FinOps operations for our users.\nEach distribution is linked to an ",(0,o.jsx)(i.code,{children:"AwsAccount"})," to identify which AWS account owns the distribution."]}),"\n",(0,o.jsx)(i.h2,{id:"awscloudfrontdistribution-model-fields",children:"AwsCloudfrontDistribution Model Fields"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"aws_account"}),": Foreign key linking the distribution to an AWS account"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"distribution_id"}),": Unique ID of the CloudFront distribution"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"domain_name"}),": Domain name of the distribution"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"status"}),": Current status (e.g., Deployed, InProgress)"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"enabled"}),": Boolean indicating if the distribution is enabled"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"staging"}),": Boolean indicating if the distribution is in staging"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"is_ipv6_enabled"}),": Boolean indicating if IPv6 is enabled"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"region_name"}),": AWS region of the distribution (optional)"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.strong,{children:"last_synced"}),": Timestamp of the last sync with AWS"]}),"\n"]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsxs)(i.em,{children:["Note: ",(0,o.jsx)(i.code,{children:"region_name"})," is optional. Other fields are automatically populated from AWS during sync."]})}),"\n",(0,o.jsx)(i.h2,{id:"example-usage-in-django-admin",children:"Example Usage in Django Admin"}),"\n",(0,o.jsxs)(i.ol,{children:["\n",(0,o.jsx)(i.li,{children:"Log in to the Django admin panel."}),"\n",(0,o.jsxs)(i.li,{children:["Click on ",(0,o.jsx)(i.strong,{children:"AwsCloudfrontDistribution"})," in the admin menu."]}),"\n",(0,o.jsxs)(i.li,{children:["Add a new distribution by filling in the fields:","\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"aws_account"}),"\n",(0,o.jsx)(i.li,{children:"distribution_id"}),"\n",(0,o.jsx)(i.li,{children:"domain_name"}),"\n",(0,o.jsx)(i.li,{children:"status"}),"\n",(0,o.jsx)(i.li,{children:"enabled"}),"\n",(0,o.jsx)(i.li,{children:"staging"}),"\n",(0,o.jsx)(i.li,{children:"is_ipv6_enabled"}),"\n",(0,o.jsx)(i.li,{children:"region_name (optional)"}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(i.li,{children:"Save the entry. You can now view and manage it in the admin panel."}),"\n"]}),"\n",(0,o.jsx)(i.h2,{id:"references",children:"References"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:(0,o.jsx)(i.a,{href:"https://docs.aws.amazon.com/cloudfront/",children:"AWS CloudFront Documentation"})}),"\n"]})]})}function u(n={}){const{wrapper:i}={...(0,t.R)(),...n.components};return i?(0,o.jsx)(i,{...n,children:(0,o.jsx)(a,{...n})}):a(n)}},28453(n,i,e){e.d(i,{R:()=>r,x:()=>l});var s=e(96540);const o={},t=s.createContext(o);function r(n){const i=s.useContext(t);return s.useMemo(function(){return"function"==typeof n?n(i):{...i,...n}},[i,n])}function l(n){let i;return i=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:r(n.components),s.createElement(t.Provider,{value:i},n.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.